12 lines
374 B
Plaintext
12 lines
374 B
Plaintext
|
{% 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 %}
|