1
0
Fork 0
forked from infra/ansible

proxies / website: on src/koji/riscv-koji have POSTs bypass anubis

See infra/tickets#12913
and https://github.com/TecharoHQ/anubis/issues/1624

We are seeing sporadic EOF errors when koji/src/riscv-koji send a 200
reply back through anubis.

Since we just allow POST in anubis anyhow, bypass it entirely for them
to avoid the EOF issue until we can sort it out more.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2026-05-14 16:30:45 -07:00 committed by Kevin Fenzi
commit 7688d6da70

View file

@ -148,6 +148,17 @@
ProxyTimeout 10800
{% endif %}
{% if site_name == 'koji.fedoraproject.org' or site_name == 'riscv-koji.fedoraproject.org' or site_name == 'src.fedoraproject.org' %}
# We allow POST thru anubis, but we are seeing a sporadic EOF error with replies
# coming from the backend. See https://forge.fedoraproject.org/infra/tickets/issues/12913
#
# So, just bypass anubis for POST's
#
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^(.*)$ http://127.0.0.1:8345$1 [P,L]
{% endif %}
{% if site_name.startswith('openqa') %}
# Openqa uses websockets, so allow them through anubis proxying.
ProxyPass / http://127.0.0.1:8987/ upgrade=websocket keepalive=on ttl=15