1
0
angie-conv-image/angie/j2cfg.dist/headers-request-transparent.yml.j2

12 lines
374 B
Plaintext
Raw Normal View History

2024-07-31 14:04:15 +03:00
{% 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 %}