I got a new droplet and i deployed my NoseJS/TypeScript project. It runs on IP:51001. (Just a backend service that i want to run 24/7)
If i just visit the ip for my droplet i wont get anything so pretty much i have to visit ip:port since my project runs on a specific websocket port.
After finishing up on my static page i created a websocket:
private socket = new WebSocket("ws://ip:port");
Since im hosting my static page on a HTTPS apache server i cant use the non secure websocket. So i have to add ssl on my websocket so i can request it as wss://port:ip.
I spent the past 2 days trying to do just that, countless tutorials, guides. Even tried adding my own domain,self signed ssl,certbot. I can’t make it work, does it make sense what im trying to do?
Sorry for the weird wording, english is not my first language and im really new to all this…
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!