Docker image https

Hi,
I’m using openvidu 2.17.0 for quite a while now, like this:

docker run -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET -e DOMAIN_OR_PUBLIC_IP=192.168.1.115 openvidu/openvidu-server-kms:2.17.0

Thought I’ll upgrade to latest, so I tried 2.30.0, like
docker run -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET -e DOMAIN_OR_PUBLIC_IP=192.168.1.115 openvidu/openvidu-dev:2.30.1

But then I saw SSL record errors, and realized that the new docker image enables plain http rather than https:

   OpenVidu is ready!
   ---------------------------

   * OpenVidu Server URL: http://192.168.1.115:4443/

   * OpenVidu Dashboard: http://192.168.1.115:4443/dashboard

But then my chatrooms get ws rather than wss, and browser refuses to do anything with ws, because it’s insecure.
Apparently last version that has https is 2.22.0, since 2.23.0 it’s plain http. Meaning I can’t use it for web development as it is, I’d have to set up proxy.

Is this intentional? (If so, why?)
Is there a way to enable https?

Thanks!

(I’m working on open source VR server, live demo available at https://vrspace.org and it’s still running 2.17)

Try this:

docker run -p 4443:4443 --rm \
  -e OPENVIDU_SECRET=MY_SECRET \
  -e DOMAIN_OR_PUBLIC_IP=192.168.1.115 \
  -e FORCE_PLAIN_HTTP=false \
  -e SERVER_SSL_ENABLED=true \
  openvidu/openvidu-dev:2.30.1

That did it, thanks!

1 Like