-
Notifications
You must be signed in to change notification settings - Fork 381
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
WebSocket connection is broken. #119
Comments
Hi, You'll need to proxy the Host header.
https://github.com/oznu/homebridge-config-ui-x/wiki/Reverse-Proxy:-Apache |
I've added a "platforms": [
{
"platform": "config",
"name": "Config",
"port": 8080,
"proxyHost": "my-domain.com:5000"
}
]
|
I might have a similar problem. I have a URL pointing to my server with an nginx reverse proxy. If I load homebridge-config-ui-x directly on my server using The console shows this error too:
|
@randybruder - are you proxying the web socket in your nginx vhost config block? location / {
proxy_pass http://127.0.0.1:8080; # replace 8080 with the port the ui is running on
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
}
|
All I had was:
So obviously I was missing your fancy extra lines (sorry, I'm really new to nginx.) I added all the additional lines, rebooted nginx, and it's all working as expected. Thank you so much for your help! I appreciate it. |
Recently, it appears an update has broken my config of the reverse proxy I use to access the web socket for the config UI – it looks as though there is a security issue although the WebSocket issue is at the same URL as the page.
Any ideas?
The text was updated successfully, but these errors were encountered: