Skip to content
Snippets Groups Projects
Commit 0899e68b5470 authored by Andrew Winata's avatar Andrew Winata
Browse files

Update nginx conf behind a proxy to show the user IP

The purpose of this section is configure GitLab to log the IP address of the requestor instead of the proxy IP address. So X-Forwarded-For should be used here.
parent 41f0640df187
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,7 @@
# Each address is added to the the NGINX config as 'set_real_ip_from <address>;'
nginx['real_ip_trusted_addresses'] = [ '192.168.1.0/24', '192.168.2.1', '2001:0db8::/32' ]
# other real_ip config options
nginx['real_ip_header'] = 'X-Real-IP'
nginx['real_ip_header'] = 'X-Forwarded-For'
nginx['real_ip_recursive'] = 'on'
```
......
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