12 lines
374 B
Django/Jinja
12 lines
374 B
Django/Jinja
{% if env.NGX_HTTP_TRANSPARENT_PROXY == '0' %}
|
|
request_headers:
|
|
Host: '$proxy_host'
|
|
X-Real-IP: '$remote_addr'
|
|
## '$proxy_add_forwarded' is defined in /angie/autoconf.dist/http-request-headers-forwarded.conf
|
|
Forwarded: '$proxy_add_forwarded'
|
|
{% elif env.NGX_HTTP_TRANSPARENT_PROXY == '1' %}
|
|
request_headers:
|
|
Host: '$host'
|
|
X-Real-IP: ''
|
|
Forwarded: ''
|
|
{% endif %} |