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
|
||||
sslonly: true
|
||||
server_aliases: [debuginfod.stg.fedoraproject.org]
|
||||
x_forward: true
|
||||
cert_name: "{{wildcard_cert_name}}"
|
||||
tags: debuginfod
|
||||
|
||||
|
|
|
@ -6,7 +6,11 @@
|
|||
ServerAdmin {{ server_admin }}
|
||||
TraceEnable Off
|
||||
|
||||
{% if x_forward %}
|
||||
# RequestHeader unset X-Forwarded-For
|
||||
{% else %}
|
||||
RequestHeader unset X-Forwarded-For
|
||||
{% endif %}
|
||||
|
||||
{% if gzip %}
|
||||
SetOutputFilter DEFLATE
|
||||
|
@ -46,7 +50,11 @@
|
|||
{% endif %}
|
||||
ServerAdmin {{ server_admin }}
|
||||
|
||||
{% if x_forward %}
|
||||
# RequestHeader unset X-Forwarded-For
|
||||
{% else %}
|
||||
RequestHeader unset X-Forwarded-For
|
||||
{% endif %}
|
||||
|
||||
{% if ansible_distribution == 'Fedora' and use_h2 %}
|
||||
Protocols h2 http/1.1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue