Dont use h2 for (app.)os.stg.fedoraproject.org to fix websockets

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2018-09-12 01:27:39 +02:00
parent b97a401f57
commit 4a385eadba
3 changed files with 9 additions and 1 deletions

View file

@ -164,6 +164,7 @@
server_aliases: [src.stg.fedoraproject.org]
cert_name: "{{wildcard_cert_name}}"
sslonly: true
use_h2: false
- role: httpd/website
site_name: download.fedoraproject.org
@ -591,6 +592,9 @@
site_name: os.stg.fedoraproject.org
sslonly: true
cert_name: "{{wildcard_cert_name}}"
# The Connection and Upgrade headers don't work for h2
# So non-h2 is needed to fix websockets.
use_h2: false
tags:
- os.stg.fedoraproject.org
@ -600,6 +604,9 @@
sslonly: true
cert_name: "{{os_wildcard_cert_name}}"
SSLCertificateChainFile: "{{os_wildcard_int_file}}"
# The Connection and Upgrade headers don't work for h2
# So non-h2 is needed to fix websockets.
use_h2: false
tags:
- app.os.stg.fedoraproject.org

View file

@ -2,6 +2,7 @@
#name: ...
#cert_name: ""
use_h2: true
server_aliases: []
server_admin: webmaster@fedoraproject.org
certbot: false

View file

@ -42,7 +42,7 @@
RequestHeader unset X-Forwarded-For
{% if ansible_distribution == 'Fedora' and not inventory_hostname.startswith(('proxy01.phx2','proxy10.phx2')) and site_name != 'src.fedoraproject.org' %}
{% if ansible_distribution == 'Fedora' and not inventory_hostname.startswith(('proxy01.phx2','proxy10.phx2')) and use_h2 %}
Protocols h2 http/1.1
{% elif ansible_distribution == 'Fedora' %}
# For proxy01/10 and src.fedoraproject.org we only do http/1.1 because h2 hits a curl bug downloading sources