how do i install ssl on my selfhosted docker deploy?

My convex react client wont connect to my selfhosted docker convex backend because i cant use wss because its http
3 Replies
Convex Bot
Convex Bot3w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
coochie boy sniped you
i ended up setting up a reverse proxy with the nginx proxy manager docker image i added it to my docker compose file then i opened up the proxy manager and added three hosts first host I set the source domain as convex.example.com then I set the destination to http://backend:3210 (backend refers to the backend docker service) second host I set the source domain as convexapi.example.com then i set the destination to http://backend:3211 third host I set the source domain as convexdashboard.example.com then i set the destination to http://dashboard:6791 (dashboard refers to the dashboard docker service) then I enabled websockets on all of them and added ssl certs with the proxy manager's built in ssl functions. also I removed all the ports entries on the dashboard and backend in the docker-compose.yml. I only kept the ports on the proxy. when putting in ur urls into ur client application make sure u dont add an additional port to the extension of ur domain(e.g :3210). also change all the localhosts in ur dockercompose.yml to the correct urls and without additional ports. when i set up the Sub Domains i just made DNS A records that refer to the docker's host IP.
erquhart
erquhart3w ago
Thanks for circling back with your solution!

Did you find this page helpful?