Add expect clear header
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
0e6058d810
commit
e714c9dcb5
2 changed files with 9 additions and 1 deletions
|
@ -497,17 +497,22 @@
|
||||||
website: geoip.fedoraproject.org
|
website: geoip.fedoraproject.org
|
||||||
proxyurl: http://localhost:10029
|
proxyurl: http://localhost:10029
|
||||||
|
|
||||||
# Reverse proxy pkgs for integrity protection of anonymous clones
|
|
||||||
- role: httpd/reverseproxy
|
- role: httpd/reverseproxy
|
||||||
website: src.fedoraproject.org
|
website: src.fedoraproject.org
|
||||||
destname: git
|
destname: git
|
||||||
proxyurl: http://localhost:10057
|
proxyurl: http://localhost:10057
|
||||||
|
header_scheme: true
|
||||||
|
header_expect: true
|
||||||
|
keephost: true
|
||||||
when: env == "production"
|
when: env == "production"
|
||||||
|
|
||||||
- role: httpd/reverseproxy
|
- role: httpd/reverseproxy
|
||||||
website: src.stg.fedoraproject.org
|
website: src.stg.fedoraproject.org
|
||||||
destname: git
|
destname: git
|
||||||
proxyurl: http://localhost:10057
|
proxyurl: http://localhost:10057
|
||||||
|
header_scheme: true
|
||||||
|
header_expect: true
|
||||||
|
keephost: true
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
|
|
||||||
- role: httpd/reverseproxy
|
- role: httpd/reverseproxy
|
||||||
|
|
|
@ -9,7 +9,10 @@ RequestHeader set X-Scheme https early
|
||||||
RequestHeader set X-Forwarded-Proto https early
|
RequestHeader set X-Forwarded-Proto https early
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if header_expect %}
|
||||||
|
RequestHeader unset Expect early
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
{% if keephost %}
|
{% if keephost %}
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue