diff options
author | zeeZ <zeeZinator+github@gmail.com> | 2013-11-18 10:54:20 +0100 |
---|---|---|
committer | zeeZ <zeeZinator+github@gmail.com> | 2013-11-18 10:54:20 +0100 |
commit | 59b6337de04c8f60dad4a0f86845143e10e97c92 (patch) | |
tree | 8136763302522280eaf1cec146b02a4fcde77df3 /lib/support | |
parent | c938833bd9f5373af5b8012df39a360517fd5261 (diff) | |
download | gitlab-ce-59b6337de04c8f60dad4a0f86845143e10e97c92.tar.gz |
Add X-Forwarded-For to nginx config
Diffstat (limited to 'lib/support')
-rw-r--r-- | lib/support/nginx/gitlab | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/support/nginx/gitlab b/lib/support/nginx/gitlab index 3e929c52990..62b76984892 100644 --- a/lib/support/nginx/gitlab +++ b/lib/support/nginx/gitlab @@ -32,6 +32,7 @@ server { proxy_set_header X-Forwarded-Proto $scheme; 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_pass http://gitlab; } |