Commit 59b6337de04c8f60dad4a0f86845143e10e97c92
1 parent
c938833b
Exists in
master
and in
4 other branches
Add X-Forwarded-For to nginx config
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/support/nginx/gitlab
@@ -32,6 +32,7 @@ server { | @@ -32,6 +32,7 @@ server { | ||
32 | proxy_set_header X-Forwarded-Proto $scheme; | 32 | proxy_set_header X-Forwarded-Proto $scheme; |
33 | proxy_set_header Host $http_host; | 33 | proxy_set_header Host $http_host; |
34 | proxy_set_header X-Real-IP $remote_addr; | 34 | proxy_set_header X-Real-IP $remote_addr; |
35 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
35 | 36 | ||
36 | proxy_pass http://gitlab; | 37 | proxy_pass http://gitlab; |
37 | } | 38 | } |