yewstack / yew

Rust / Wasm framework for creating reliable and efficient web applications

Home Page:https://yew.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nginx example in doc?

r3k2 opened this issue · comments

Hello,
I look all over for an example nginx config so I can compare with mine, I have my app working but websockets is not connecting, so I think I need to add something to my nginx vhost entry for my domain for this app wrote in rust with yew.
app loads but cant register users etc because I have a
"NS_ERROR_WEBSOCKET_CONNECTION_REFUSED"
my setup in nginx is not as suggested using the dev command trunk run so I pointed nginx vhost to the "dist" folder. and runs but websockets fails. :( I asked people but they all want me to run the whole thing as a with nginx as a reverse proxy with trunk but I refuse nginx should run this.

I will convert this to a discussion since WebSocket is a server component and I do not think Yew documentation should cover server deployment.