2017-12-04 22:16:08 +02:00
|
|
|
# Default proxy setup
|
2018-02-06 19:56:41 +02:00
|
|
|
proxy_set_header Host $http_host;
|
2017-12-04 22:16:08 +02:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2021-08-28 10:03:18 +02:00
|
|
|
proxy_set_header True-Client-IP $remote_addr;
|
2021-08-28 09:02:52 +02:00
|
|
|
proxy_set_header Forwarded "";
|
2017-12-04 23:19:17 +02:00
|
|
|
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
|
2021-08-28 10:03:18 +02:00
|
|
|
{% if REAL_IP_HEADER and REAL_IP_FROM %}
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
{% else %}
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
{% endif %}
|
2019-07-11 22:38:34 +02:00
|
|
|
proxy_http_version 1.1;
|