ionorg / ion

Real-Distributed RTC System by pure Go and Flutter
MIT License
3.83k stars 520 forks source link

add an area directly inside of the sfu that allows users to point to their ssl certs #596

Open mattjslaton opened 2 years ago

mattjslaton commented 2 years ago

I've gotten this locally on my system inside of a docker container, everything works fine but when I got to upload everything to my server, the client written in javascript wont connect because it is not secure. I've tried to use Caddy to build a secure connection using keys but Caddy was not working as expected. I decided to use a server written in node to upgrade the connection using the package http-proxy. That seemed to have worked, but for some reason the video is not showing up. Which should not be an issue unless the proxy server is not relaying all the information the webrtc client needs. What would be more ideal would be having a config file for this sfu where I can put in the certs and not have to worry about installing a separate reverse proxy to handle the ssl

Sean-Der commented 2 years ago

Hi @mattjslaton

Would you mind describing your setup a little more. Are you running ion-app-web?

If you set the names here you should get a certificate via LetsEncrypt.

vmwsree commented 2 years ago

im accessing my server using ip, still the remote video stream doesn't show

jason-shen commented 2 years ago

you need a real domain to get the ssl cert via LetsEncrypt, if you want to test locally you can try to use here , the free plan will do want you wanted, as ngrok will give you a subdomain that has ssl. hope that helps