Genie Discord forum

I experienced some issue attempting to deploy a Stipple app directly on a AWS EC2 server.
The app works fine accessing the app directly on the server IP adress: 123.123.123.123:8001
However, when accessing through a NGINX reverse proxy, the app just briefly and partially open by showing some text elements, after switching to the follwoing error message under less than a second.
Note that in the adress bar, the page gets redirected to #wsconnectionalert
.
The nginx configuration was quite vanilla, and a similar setup did work with a basic Genie app:
server {
server_name dataexplorer.mypage.dev;
root /home/ubuntu/DataExplorer.jl/public/;
listen 80;
location / {
proxy_pass http://localhost:8000;
}
}
Is there anything suspicious that may explain the websocket issue?


The following blog from nginx brought much of the response: https://www.nginx.com/blog/websocket-nginx/ In particular:
server {
listen 8020;
location / {
proxy_pass http://websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
}
}

@jeremiedb does it work correctly now?

@Sarthak Gupta FYI

Yes it does, the above instructions I posted in the second message (the proxy_http_version 1.1;
and following proxy settings) were the missing ingrediensts. BY including them, nginx now appear to happily handle the websocket connexions. Thanks for following up !