Commit 687a5894 authored by Kevin Daudt's avatar Kevin Daudt 💻
Browse files

nginx: make X-Forwarded-For config dynamic

This allows gitlab to be tested locally where no https is used.
parent 172b4f3c
Pipeline #103840 passed with stages
in 16 minutes and 16 seconds
......@@ -44,7 +44,7 @@ index 74eb8634d..8b440237e 100644
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-Ssl on;
+ proxy_set_header X-Forwarded-Ssl $https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment