nginx.conf: removed "proxy_set_header X-Forwarded-Proto $scheme;"

When TLS is terminated on load balancer, unencrypted connection is
 established to Nginx which drops "X-Forwarded-Proto" header (if set by the
 load balancer) causing notorious error on (successful) authentication:

    422 The change you requested was rejected
This commit is contained in:
Dmitry Smirnov 2019-02-22 18:24:00 +11:00
parent 8f98c93cfa
commit 134d89c93d

View file

@ -53,7 +53,6 @@ server {
proxy_set_header Host $http_host;
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 $scheme;
proxy_pass http://gitlab-workhorse;
}