mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #1067] Websockets are not working anymore after changing a host in version v2.9.0 #893
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#893
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Nenodema on GitHub (May 6, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1067
Checklist
jc21/nginx-proxy-manager:latestdocker image?Yes
Yes
Describe the bug
After the upgrade to version 2.9.0 websockets seems not work anymore (after a change while on version 2.9.0), when i switch back to version 2.8.1 and perform the following steps its working again.
1. click on my proxy host (the entry with the websocket toggle enabled)
2. Toggle (disable) websocket
3. Press save
4. click again on my proxy host
5. Toggle (enable) websocket
6. Press save
7. working
When i start the 2.9.0 container and follow the above steps the websockets are not working anymore.
v2.9.0
Additional context
Error in chrome dev tools: "Unable to connect to ****." websocket failed. Unfortunately i cloud not found any relevant log files.
I guess it has something todo with the following PR: https://github.com/jc21/nginx-proxy-manager/pull/1017
@jiriteach commented on GitHub (May 7, 2021):
I am experiencing this as well. Have seen it on 2.9.0 and 2.9.1. Websockets are not working anymore.
@jlesage commented on GitHub (May 7, 2021):
The issue has been introduced with the following change:
github.com/jc21/nginx-proxy-manager@421934efedThe
proxy_set_headerdirectives required for WebSocket cannot be moved out from thelocationlevel. According to http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header:So because of the inclusion of
conf.d/include/proxy.conf(which hasproxy_set_headerdirectives) underlocation, the directives for WebSocket are ignored.@jc21 commented on GitHub (May 8, 2021):
Ah good pickup @jlesage - rookie move letting this go by on my part.
So from this explanation, I've committed this so anyone creating a custom location block without
proxy_set_headerdirectives will still have websocket support, though I can't see why they would use websockets if not proxy'ing 🤷When this build is green (and not before, eta ~2 hours) anyone is welcome to test this change by using the
github-developdocker tag. I won't be able to test this myself for about 8 hours due to prior commitments.To test:
@jiriteach commented on GitHub (May 8, 2021):
Awesome - Thanks. Just pulled github-develop and tried it. Websockets is working as expected again. I did have to open an existing rule and resave and working fine. Thanks
@serotonie commented on GitHub (May 9, 2021):
Had the same issue in the Morning.
github-develop also solved this for me :)
When will you commit in the latest branch ?
Thx
@jc21 commented on GitHub (May 9, 2021):
My weekend plans took longer than expected. Working on a new release today.
@jc21 commented on GitHub (May 10, 2021):
Fixed in 2.9.2 release