This will allow for X forwarded to be set for hosts which need it. [Currently only debuginfod]
This commit is contained in:
parent
1284267f48
commit
5db5700936
2 changed files with 9 additions and 0 deletions
|
@ -973,6 +973,7 @@
|
||||||
site_name: debuginfod.fedoraproject.org
|
site_name: debuginfod.fedoraproject.org
|
||||||
sslonly: true
|
sslonly: true
|
||||||
server_aliases: [debuginfod.stg.fedoraproject.org]
|
server_aliases: [debuginfod.stg.fedoraproject.org]
|
||||||
|
x_forward: true
|
||||||
cert_name: "{{wildcard_cert_name}}"
|
cert_name: "{{wildcard_cert_name}}"
|
||||||
tags: debuginfod
|
tags: debuginfod
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,11 @@
|
||||||
ServerAdmin {{ server_admin }}
|
ServerAdmin {{ server_admin }}
|
||||||
TraceEnable Off
|
TraceEnable Off
|
||||||
|
|
||||||
|
{% if x_forward %}
|
||||||
|
# RequestHeader unset X-Forwarded-For
|
||||||
|
{% else %}
|
||||||
RequestHeader unset X-Forwarded-For
|
RequestHeader unset X-Forwarded-For
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if gzip %}
|
{% if gzip %}
|
||||||
SetOutputFilter DEFLATE
|
SetOutputFilter DEFLATE
|
||||||
|
@ -46,7 +50,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
ServerAdmin {{ server_admin }}
|
ServerAdmin {{ server_admin }}
|
||||||
|
|
||||||
|
{% if x_forward %}
|
||||||
|
# RequestHeader unset X-Forwarded-For
|
||||||
|
{% else %}
|
||||||
RequestHeader unset X-Forwarded-For
|
RequestHeader unset X-Forwarded-For
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if ansible_distribution == 'Fedora' and use_h2 %}
|
{% if ansible_distribution == 'Fedora' and use_h2 %}
|
||||||
Protocols h2 http/1.1
|
Protocols h2 http/1.1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue