You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything works fine, except that a websocket is trying to connect directly to https://mysite.com:3000.
I'd like it to connect to another port (let's say 3005), then nginx will redirect it to localhost:3000
(Why is there even a websocket ?)
Is there a way to configure the server to "advertize" port 3005, while listening to port 3000 ? So I can redirect it with nginx ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone.
I am trying to run the dev vite server behind a reverse proxy (nginx) for SSL terminaison.
I redirect https://mysite.com to http://localhost:3000
Everything works fine, except that a websocket is trying to connect directly to https://mysite.com:3000.
I'd like it to connect to another port (let's say 3005), then nginx will redirect it to localhost:3000
(Why is there even a websocket ?)
Is there a way to configure the server to "advertize" port 3005, while listening to port 3000 ? So I can redirect it with nginx ?
(When the websocket fail, the page is reload..)
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions