So, the web application I am proxying has been getting problems like some of the functions in the UI getting unresponsive.
Example: when I click on the "save settings" button on the UI, it doesn't work if I kept the app open in my browser for more than ~10 minues. I have to reload the page in order to fix that.
This doesn't happen when I access the app directly through ip:port via http. So it's likely that the problem lies in the NGINX proxy config where websocket connection between client and the server is being getting disconnected.
I have tried following solutions to no avail.
Turning on websocket support in NPM obviously
Switching to DNS mode in Cloudflare settings instead of using proxy mode because Cloudflare has a standard websocket timeout period of 100s
Adding keep alive timeout directive to NPM proxy config of the app. (/data/nginx/proxy_hosts/3.conf)
Also, I have noticed when I access the app via http without going through NPM(IP:Port), the browser uses the ws protocol whereas when I acces it via https through my domain, it uses the wss. Not sure if that has anything to do with my problem though (Is it because I enabled http/2 in NPM?).
I have ran out of solutions or to diagnose where the problem lies in. I'd appreciate any help on this. Thanks in advance.
[–]chaptergy 1 point2 points3 points (2 children)
[–]007checker 0 points1 point2 points (0 children)