Cannot connect websocket via Nginx when using FastAPI
I’m trying to run a simple service with websocket to make it work through nginx. This is what my files look like (their code is below). When I run this on a local PC (Windows 10), it works correctly, but on vps (UBUNTU) with nginx there is no way for the connection to be established via websocket.
What am I doing wrong, please give me advice. I haven’t been able to solve this for seven days now! Thank you in advance
PYTHON FASRAPI, Problem connecting WEBSOCKET via Nginx
Please tell a newbie
I’m trying to run a simple service with WEBSOCKET to make it work through nginx. This is what my files look like (their code is below). When I run this on a local PC (Windows 10), it works correctly, but on vps (UBUNTU) with nginx there is no way for the connection to be established via WEBSOCKET.
What am I doing wrong, please give me advice. I haven’t been able to solve this for seven days now! Thank you in advance