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
|
||||
proxyurl: http://localhost:10029
|
||||
|
||||
# Reverse proxy pkgs for integrity protection of anonymous clones
|
||||
- role: httpd/reverseproxy
|
||||
website: src.fedoraproject.org
|
||||
destname: git
|
||||
proxyurl: http://localhost:10057
|
||||
header_scheme: true
|
||||
header_expect: true
|
||||
keephost: true
|
||||
when: env == "production"
|
||||
|
||||
- role: httpd/reverseproxy
|
||||
website: src.stg.fedoraproject.org
|
||||
destname: git
|
||||
proxyurl: http://localhost:10057
|
||||
header_scheme: true
|
||||
header_expect: true
|
||||
keephost: true
|
||||
when: env == "staging"
|
||||
|
||||
- role: httpd/reverseproxy
|
||||
|
|
|
@ -9,7 +9,10 @@ RequestHeader set X-Scheme https early
|
|||
RequestHeader set X-Forwarded-Proto https early
|
||||
|
||||
{% endif %}
|
||||
{% if header_expect %}
|
||||
RequestHeader unset Expect early
|
||||
|
||||
{% endif %}
|
||||
{% if keephost %}
|
||||
ProxyPreserveHost On
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue