Background info
I followed the “On Premise” installation procedure on an Amazon Ec2 instance. Then built my Node application following the Node tutorial. I then set-up a docker compose (dockerize) for my custom app and successfully deployed this to work with the reverse proxy. However the live stream will fail upon getting a session.
The docs states: OpenVidu platform URL has to be configured to http://localhost:5443
The failure however was due to the openvidu-node-client forcing https, i.e. assuming the app server was a different server is my guess. But this doesn’t work for where the app is installed on the same server as the openvidu platform.
Changing the protocol in the Session.js file for getSessionIdHttp
and generateToken
resolves this issue.
My question is: Should this be https if running on the same server? Is this a problem with my deployment + environment or app? I’m not that versed in the architecture of OpenVidu.