Allow connecting to websockets via api/websocket/

* Before, we just allowed websockets on <host>/websocket/. With this
  change, they can now come from <host>/api/websocket/
This commit is contained in:
Chris Meyers
2024-02-12 15:44:38 -05:00
committed by Chris Meyers
parent ecbb16960f
commit 1eb8501430

View File

@@ -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