angie: adjust/fix default configuration
This commit is contained in:
parent
3fa79d3092
commit
4237fb1742
@ -20,28 +20,26 @@ compress_types:
|
||||
- text/xml
|
||||
|
||||
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' %}
|
||||
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'
|
||||
## 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' %}
|
||||
Host: '$host'
|
||||
X-Real-IP: ''
|
||||
Forwarded: ''
|
||||
{% 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' %}
|
||||
X-Forwarded-Proto: '$scheme'
|
||||
X-Forwarded-Host: '$host'
|
||||
|
Loading…
Reference in New Issue
Block a user