Commit f24e151414dca3853cbe3631ef045e884b14b00d
Exists in
master
and in
4 other branches
Merge pull request #5617 from zeeZ/nginx-proxy
Add X-Forwarded-For to nginx config
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/support/nginx/gitlab
@@ -35,6 +35,7 @@ server { | @@ -35,6 +35,7 @@ server { | ||
35 | proxy_set_header X-Forwarded-Proto $scheme; | 35 | proxy_set_header X-Forwarded-Proto $scheme; |
36 | proxy_set_header Host $http_host; | 36 | proxy_set_header Host $http_host; |
37 | proxy_set_header X-Real-IP $remote_addr; | 37 | proxy_set_header X-Real-IP $remote_addr; |
38 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
38 | 39 | ||
39 | proxy_pass http://gitlab; | 40 | proxy_pass http://gitlab; |
40 | } | 41 | } |