ubuntu@ip-XX-XX-XX-XX:/var/log/nginx$ sudo service janus status
● janus.service - Janus WebRTC Server
Loaded: loaded (/etc/systemd/system/janus.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2022-04-25 21:31:09 UTC; 5s ago
Main PID: 21447 (sudo)
Tasks: 24 (limit: 2347)
CGroup: /system.slice/janus.service
├─21447 /usr/bin/sudo /opt/janus/bin/janus
└─21458 /opt/janus/bin/janus
Apr 25 21:31:09 ip-XX-XX-XX-XX sudo[21447]: Loading transport plugin 'libjanus_websockets.so'...
Apr 25 21:31:09 ip-XX-XX-XX-XX sudo[21447]: [WARN] libwebsockets has been built without IPv6 support, will bind to IPv4 only
Apr 25 21:31:09 ip-XX-XX-XX-XX sudo[21447]: libwebsockets logging: 0
Apr 25 21:31:09 ip-XX-XX-XX-XX sudo[21447]: WebSockets server started (port 8188)...
Apr 25 21:31:09 ip-XX-XX-XX-XX sudo[21447]: JANUS WebSockets transport plugin initialized!
Apr 25 21:31:09 ip-XX-XX-XX-XX sudo[21447]: Loading transport plugin 'libjanus_http.so'...
Apr 25 21:31:09 ip-XX-XX-XX-XX sudo[21447]: HTTP webserver started (port 8088, /janus path listener)...
Apr 25 21:31:09 ip-XX-XX-XX-XX sudo[21447]: JANUS REST (HTTP/HTTPS) transport plugin initialized!
Apr 25 21:31:09 ip-XX-XX-XX-XX sudo[21447]: HTTP transport timer started
Apr 25 21:31:09 ip-XX-XX-XX-XX sudo[21447]: WebSockets thread started
+++++++++++++++++++
location /janus {
proxy_set_header Host $host;
proxy_set_header Connection "";
proxy_http_version 1.1;
proxy_pass http://127.0.0.1:8088;
}
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8188;
One thing i am not sure, since the server is in AWS, do I need to open ports? Current port HTTPS 443, HTTP 8088, HTTPS 8089, WS 8188, WSS 8989 are open.On Monday, May 2, 2022 at 2:26:01 PM UTC-5 sean lu wrote:So here is what I did so far.I have installed Janus WebRTC and Janus demo on the same test box, let's call it test.example.comJanus API is listening on Port 8088 (HTTP) and 8089 (HTTPS), http://test.example.com:8088/janus/info and http://test.example.com:8089/janus/info return correct information.Janus WebSocket is listening on Port 8188 (plain) and 8989(secure) and verified with nc command.Here HTTPS and WSS is using a self signed cert, let's call it cert1Janus demo installed with Ngnix (self signed certificate), webpages shows under https://test.example.com, here Nginx is installed with self signed cert (cert2) so traffic terminate at port 443To test echotest, have the following defined in echotest.jsvar server = "wss://test.example.com:8989";
var server = "wss://vstest.apt.cv700-telematics.net:8989";var server = "wss://vstest.apt.cv700-telematics.net:8989";
When trying to launch the test, local stream is trying to publish and I can see the video stream, but the remote stream is trying to establish but did not show anything, and after couple of seconds, it stopped with following message (The echo test is over)Same thing when trying to test Video Room, I have the same modification in videoroomtest.jsAnd when trying to launch, it asked me to enter the room name, and then it tried to publish the stream but again stopped after couple of seconds
var server = "wss://test.example.com:8989";
When trying to launch the test, local stream is trying to publish and I can see the video stream, but the remote stream is trying to establish but did not show anything, and after couple of seconds, it stopped with following message (The echo test is over)