atyenoria / janus-webrtc-gateway-docker

Perfect Docker Image for Media Streaming Expert User ( https://github.com/meetecho/janus-gateway )
688 stars 200 forks source link

SSL configuration #68

Closed c4b4d4 closed 4 years ago

c4b4d4 commented 4 years ago

How am I supposed to configure the SSL certs in this docker? I see a BoringSSL thing, but how does it configure?

I’m running the docker in the cloud, thru my own domain.

c4b4d4 commented 4 years ago

I managed to specify the certs thru this configuration on the nginx:

# HTTPS server
    #
    server {
    listen       443 ssl;
        server_name  localhost;

        ssl_certificate      /usr/local/nginx/fullcert.crt;
        ssl_certificate_key  /usr/local/nginx/key.key;

        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;

        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;

        location / {
            root   html;
            index  index.html index.htm;
        }
    }

But when I run the docker, I'm getting warnings that the HTTP/WSS are disabled:

Screen Shot 2020-08-08 at 17 24 44 Screen Shot 2020-08-08 at 17 12 49

How am I supposed to turn it on? Also, if I just head to my localhost:443, I'm seeing the following website:

Screen Shot 2020-08-08 at 17 15 32

So HTTPS certs are good, but Janus is not detecting an HTTPS/WSS configuration.

dvision1979 commented 4 years ago

Hello @kzka90 Did you manage to get it working? Would you share your solution? Thank you.