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:
parent
8f98c93cfa
commit
134d89c93d
1 changed files with 0 additions and 1 deletions
1
debian/conf/nginx.conf.example
vendored
1
debian/conf/nginx.conf.example
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue