From 08dab074c78434f1fc96c5a5b7e3ba43339eb963 Mon Sep 17 00:00:00 2001 From: Carlos Troncoso Phillips Date: Thu, 28 Jul 2016 23:17:49 -0400 Subject: [PATCH] FIX pass http basic authentication to upstream proxy --- nginx.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/nginx.tmpl b/nginx.tmpl index 0969564..546bf0b 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -51,6 +51,7 @@ proxy_set_header Connection $proxy_connection; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto; +more_set_input_headers 'Authorization: $http_authorization'; # Mitigate httpoxy attack (see README for details) proxy_set_header Proxy "";