add nginx headers to forward real client IPs
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
eb2c4a693b
commit
64ac07efc0
|
@ -34,5 +34,9 @@ nginx_sites:
|
||||||
- ssl_certificate_key /certs/status.im/origin.key
|
- ssl_certificate_key /certs/status.im/origin.key
|
||||||
|
|
||||||
- location / {
|
- location / {
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_pass http://localhost:{{ referral_srv_app_port }}/;
|
proxy_pass http://localhost:{{ referral_srv_app_port }}/;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue