Nginx + Certbot for Reflex app #1752
Unanswered
NanoscaleSimulations
asked this question in
Q&A
Replies: 1 comment
-
I believe your config needs to explicitly allow websocket upgrade:
Also keep in mind that the next release 0.2.7 slated for today or tomorrow will change the default |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to setup nginx and certbot for my reflex app which I am hosting on a Oracle VM. My app is run using docker and exposed on ports 3000 and 8000 (frontend and backend).
It is crucial for me to setup ssl certificates because my domain is a .app TLD which only works with https.
My frontend works on my domain, but I cannot seem to setup my backend correctly when on https. The console log in my browser says:
_app-57ffd6160de7ada8.js:306 WebSocket connection to 'wss://nanocalc.app/event/?EIO=4&transport=websocket' failed:
My /etc/nginx/sites-enabled/default/ is:
and my api_url is set to:
api_url = https://nanocalc.app
Any help is appreciated :)
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions