From c6459aabab9725cce7f12604ba2649d4c8060c73 Mon Sep 17 00:00:00 2001 From: Chase Sillevis Date: Fri, 18 Mar 2016 17:03:25 +0100 Subject: [PATCH] Renaming one of the params to fly around an nginx bug --- nginx.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.tmpl b/nginx.tmpl index 9fabf8a..b3fddb1 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -17,7 +17,7 @@ # If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the # scheme used to connect to this server -map $http_x_forwarded_proto $proxy_x_forwarded_proto { +map $http_x_forwarded_proto $default_forwarded_proto { default $http_x_forwarded_proto; '' $scheme; } @@ -26,7 +26,7 @@ map $http_x_forwarded_proto $proxy_x_forwarded_proto { # pass along the original value. map $http_cloudfront_forwarded_proto $proxy_x_forwarded_proto { default $http_cloudfront_forwarded_proto; - '' $proxy_x_forwarded_proto; + '' $default_forwarded_proto; } # If we receive Upgrade, set Connection to "upgrade"; otherwise, delete any