From 1eb85014300ae2aefa979d5c1430c4f07fb9ad5e Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 12 Feb 2024 15:44:38 -0500 Subject: [PATCH] Allow connecting to websockets via api/websocket/ * Before, we just allowed websockets on /websocket/. With this change, they can now come from /api/websocket/ --- roles/installer/templates/configmaps/config.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/installer/templates/configmaps/config.yaml.j2 b/roles/installer/templates/configmaps/config.yaml.j2 index b4536b39..84479d26 100644 --- a/roles/installer/templates/configmaps/config.yaml.j2 +++ b/roles/installer/templates/configmaps/config.yaml.j2 @@ -188,7 +188,7 @@ data: alias /var/lib/awx/public/static/media/favicon.ico; } - location {{ (ingress_path + '/websocket').replace('//', '/') }} { + location ~ ({{ (ingress_path + '/websocket').replace('//', '/') }}|{{ (ingress_path + '/api/websocket').replace('//', '/') }}) { # Pass request to the upstream alias proxy_pass http://daphne; # Require http version 1.1 to allow for upgrade requests