13 lines
371 B
Plaintext
13 lines
371 B
Plaintext
|
{% 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 %}
|