-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow connecting to websockets via api/websocket/ #14866
Conversation
* Before, we just allowed websockets on <host>/websocket/. With this change, they can now come from <host>/api/websocket/
@@ -10,7 +10,7 @@ location {{ (ingress_path + '/favicon.ico').replace('//', '/') }} { | |||
alias /awx_devel/awx/public/static/favicon.ico; | |||
} | |||
|
|||
location {{ (ingress_path + '/websocket').replace('//', '/') }} { | |||
location ~ ({{ (ingress_path + '/websocket').replace('//', '/') }}|{{ (ingress_path + '/api/websocket').replace('//', '/') }}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this simplify to
location ~ ({{ (ingress_path + '/websocket').replace('//', '/') }}|{{ (ingress_path + '/api/websocket').replace('//', '/') }}) { | |
location ~ {{ (ingress_path + '/(api/)?websocket').replace('//', '/') }} { |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One inline. Non-blocking, just a readability suggestion.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nginx changes will also be needed in some form on in the awx-operator.
We should make sure this is clearly state in the release notes in case anyone was relying on this showing up at /websockets
The endpoint here is additive. Didn’t want to break folks. I should make a card to deprecate /websockets |
SUMMARY
Before, we just allowed websockets on /websocket/. With this change, they can now come from /api/websocket/
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION