Browse Source

fix redirect usage

Ralf S. Engelschall 8 years ago
parent
commit
430b315c2a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docker-gen/nginx.tmpl

+ 2 - 1
docker-gen/nginx.tmpl

@@ -38,7 +38,7 @@ http {
     ssl_stapling_verify                        on;
 
     proxy_http_version                         1.1;
-    proxy_redirect                             default;
+    proxy_redirect                             off;
     proxy_buffering                            off;
     proxy_connect_timeout                      240;
     proxy_send_timeout                         240;
@@ -118,6 +118,7 @@ http {
             }
             {{ end }}
             proxy_pass                         http://{{ $upstreamName }}{{ $paramDstPath }};
+            proxy_redirect                     default;
             proxy_set_header Host              $http_host;
             proxy_set_header Upgrade           $http_upgrade;
             proxy_set_header Connection        $connection_upgrade;