WebSocket Connection Issues with Nginx Reverse Proxy Setup #144
Replies: 4 comments
|
Hi, Just the following server block should do, nothing else needed. server {
listen 80;
server_name _;
client_max_body_size 100M;
location / {
proxy_pass http://localhost:9000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
}
} |
|
still getting error for socket see the attached screenshot server { proxy_set_header X-Forwarded-Proto $scheme;} |
|
Are you on an older version? It looks like it from the screenshot. Can you upgrade the app using this guide: https://docs.libredesk.io/getting-started/upgrade Current version is Also in your config.toml you can set https://github.com/abhinavxd/libredesk/blob/cc36ef5a3a20f2dc5cab79271bee1a4f28de1c01/config.sample.toml#L8C1-L9C1 Also you don't need that many location blocks in your nginx config to get it working, just that server block I pasted with 1 location block will do it. It's a single binary app the frontend is injected inside the binary, so once you got the binary running using docker / just binary you just need that 1 block I pasted. |



Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'm experiencing WebSocket connection issues when running LibreDesk behind an Nginx reverse proxy. The application works fine for regular HTTP requests, but WebSocket connections are failing.
Setup:
Issue:
WebSocket connections are being dropped or not establishing properly when accessing through the proxy.
Configuration attempted:
Questions:
Any help would be greatly appreciated!
All reactions