Skip to content
Snippets Groups Projects
Commit 134d89c9 authored by onlyjob's avatar onlyjob 😴
Browse files

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
parent 8f98c93c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment