mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-02-02 20:59:02 +08:00
elections: use set-forwarded-headers: replace for now
This should 'fix' broken redirects in the elections UI, see https://pagure.io/fedora-infrastructure/issue/12997 . This probably isn't ultimately the correct fix but it should make things work for now. The real issue seems to be that elections' custom WSGI app wrapper which attempts to handle the app being reverse-proxied doesn't handle all proxied headers and/or doesn't handle comma-separated list values. The long-term fix is likely to be using werkzeug/middleware/proxy_fix.py instead, see https://pagure.io/elections/issue/106 . Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
@@ -114,6 +114,8 @@
|
||||
route_host: "elections{{ env_suffix }}.fedoraproject.org"
|
||||
route_serviceport: 8000-tcp
|
||||
route_servicename: elections
|
||||
route_annotations:
|
||||
haproxy.router.openshift.io/set-forwarded-headers: replace
|
||||
|
||||
- role: openshift/object
|
||||
object_app: elections
|
||||
|
||||
Reference in New Issue
Block a user