angie: adjust/fix default configuration
This commit is contained in:
parent
3fa79d3092
commit
4237fb1742
@ -20,28 +20,26 @@ compress_types:
|
|||||||
- text/xml
|
- text/xml
|
||||||
|
|
||||||
request_headers:
|
request_headers:
|
||||||
|
## '$req_connection' is defined in /angie/autoconf.dist/http-request-headers-basic.conf.j2
|
||||||
|
Connection: '$req_connection'
|
||||||
|
Upgrade: '$http_upgrade'
|
||||||
|
Early-Data: '$ssl_early_data'
|
||||||
{% if env.NGX_HTTP_TRANSPARENT_PROXY == '0' %}
|
{% if env.NGX_HTTP_TRANSPARENT_PROXY == '0' %}
|
||||||
Host: '$proxy_host'
|
Host: '$proxy_host'
|
||||||
X-Real-IP: '$remote_addr'
|
X-Real-IP: '$remote_addr'
|
||||||
## '$proxy_add_forwarded' is defined in /angie/autoconf.dist/http-request-headers-forwarded.conf
|
## '$proxy_add_forwarded' is defined in /angie/autoconf.dist/http-request-headers-forwarded.conf
|
||||||
Forwarded: '$proxy_add_forwarded'
|
Forwarded: '$proxy_add_forwarded'
|
||||||
|
## do not pass Accept-Encoding to backend
|
||||||
|
Accept-Encoding: ""
|
||||||
|
## '$req_accept' is defined in /angie/autoconf.dist/http-request-headers-basic.conf.j2
|
||||||
|
Accept: '$req_accept'
|
||||||
|
## '$req_user_agent' is defined in /angie/autoconf.dist/http-request-headers-basic.conf.j2
|
||||||
|
User-Agent: '$req_user_agent'
|
||||||
{% elif env.NGX_HTTP_TRANSPARENT_PROXY == '1' %}
|
{% elif env.NGX_HTTP_TRANSPARENT_PROXY == '1' %}
|
||||||
Host: '$host'
|
Host: '$host'
|
||||||
X-Real-IP: ''
|
X-Real-IP: ''
|
||||||
Forwarded: ''
|
Forwarded: ''
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
request_headers:
|
|
||||||
## do not pass Accept-Encoding to backend
|
|
||||||
Accept-Encoding: ""
|
|
||||||
## '$req_accept' is defined in /angie/autoconf.dist/http-request-headers-basic.conf.j2
|
|
||||||
Accept: '$req_accept'
|
|
||||||
## '$req_connection' is defined in /angie/autoconf.dist/http-request-headers-basic.conf.j2
|
|
||||||
Connection: '$req_connection'
|
|
||||||
Upgrade: '$http_upgrade'
|
|
||||||
Early-Data: '$ssl_early_data'
|
|
||||||
## '$req_user_agent' is defined in /angie/autoconf.dist/http-request-headers-basic.conf.j2
|
|
||||||
User-Agent: '$req_user_agent'
|
|
||||||
{% if env.NGX_HTTP_X_FORWARDED == 'pass' %}
|
{% if env.NGX_HTTP_X_FORWARDED == 'pass' %}
|
||||||
X-Forwarded-Proto: '$scheme'
|
X-Forwarded-Proto: '$scheme'
|
||||||
X-Forwarded-Host: '$host'
|
X-Forwarded-Host: '$host'
|
||||||
|
Loading…
Reference in New Issue
Block a user