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

13 lines
371 B
Plaintext
Raw Normal View History

2024-07-31 14:04:15 +03:00
{% if env.NGX_HTTP_X_FORWARDED == 'pass' %}
request_headers:
X-Forwarded-Proto: '$scheme'
X-Forwarded-Host: '$host'
X-Forwarded-Port: '$server_port'
X-Forwarded-For: '$proxy_add_x_forwarded_for'
{% elif env.NGX_HTTP_X_FORWARDED == 'remove' %}
request_headers:
X-Forwarded-Proto: ''
X-Forwarded-Host: ''
X-Forwarded-Port: ''
X-Forwarded-For: ''
{% endif %}