How to config Janus on https and chrome

9,736 views
Skip to first unread message

Nguyen Huy Tuan

unread,
May 18, 2016, 1:10:06 PM5/18/16
to meetecho-janus
Dear Team,
need support from your end, how to config Janus on https and chrome. Many thanks
web server: nginx (it's working with https)
error: error: Is the gateway down?
janus.transport.http.cfg
[general]
base_path = /janus                      ; Base path to bind to in the web server (plain HTTP only)
threads = unlimited                     ; unlimited=thread per connection, number=thread pool
http = yes                                      ; Whether to enable the plain HTTP interface
port = 8088                                     ; Web server HTTP port
https = yes                                     ; Whether to enable HTTPS (default=no)
secure_port = 8889 

and 
janus.transport.websockets.cfg
[general]
ws = yes                                        ; Whether to enable the WebSockets interface
ws_port = 8188                          ; WebSockets server port
wss = yes                                       ; Whether to enable secure WebSockets
wss_port = 8989;                        ; WebSockets server secure port, if enabled




Lorenzo Miniero

unread,
May 19, 2016, 3:33:24 AM5/19/16
to meetecho-janus
Try following the guidelines here:

L.

Nguyen Huy Tuan

unread,
May 20, 2016, 5:03:18 AM5/20/16
to meetecho-janus
Dear Lorenzo,
Could you please give me the scipt sample.
How can i test Janus support https and chrome.


Many Thanks, .

Lorenzo Miniero

unread,
May 20, 2016, 5:08:03 AM5/20/16
to meetecho-janus
It's all explained in the link I gave you.

L.

Nguyen Huy Tuan

unread,
May 22, 2016, 2:57:37 AM5/22/16
to meetecho-janus
Dear Lorenzo,
Thanks for your info, i'm a bie so please support me this case.
in my case:
http://localhost:8088/janus/info => OK


   "janus": "server_info",
   "transaction": "A9rEFJ58HUw",
   "name": "Janus WebRTC Gateway",

https://localhost:8089/janus/info => NOT WORK (page not found)



Nguyen Huy Tuan

unread,
May 22, 2016, 3:05:04 AM5/22/16
to meetecho-janus
Dear Lorenzo,
For more info:
Configuration file: /opt/janus/etc/janus/janus.transport.websockets.cfg
[janus.transport.websockets.cfg]
    [general]
        ws: yes
        ws_port: 8188
        wss: yes
        wss_port: 8989
    [admin]
        admin_ws: no
        admin_ws_port: 7188
        admin_wss: no
    [certificates]
        cert_pem: /opt/janus/share/janus/certs/mycert.pem
        cert_key: /opt/janus/share/janus/certs/mycert.key
libwebsockets logging: 0
WebSockets server started (port 8188)...
Using certificates:
        /opt/janus/share/janus/certs/mycert.pem
        /opt/janus/share/janus/certs/mycert.key
Secure WebSockets server started (port 8989)...

Nguyen Huy Tuan

unread,
May 22, 2016, 5:46:03 AM5/22/16
to meetecho-janus
Dear Lorenzo,
fixed, working from my end, Thanks

nmd

unread,
Oct 7, 2016, 7:12:24 AM10/7/16
to meetecho-janus
Hello, How did you fix your problem ?

Ayush Rastogi

unread,
Aug 16, 2017, 2:43:14 AM8/16/17
to meetecho-janus
Hello, 
can you please share with us how did you resolve this problem? I am facing some problem.

nasu...@gmail.com

unread,
Aug 17, 2017, 3:48:12 AM8/17/17
to meetecho-janus
Hi,

I just share my test...

- Change https value to yes in janus.transport.http.cfg.
- I execute Janus and the secure webserver.
  I used this python code in shell.
-------------------------------
import BaseHTTPServer, SimpleHTTPServer
import ssl

httpd = BaseHTTPServer.HTTPServer(('0.0.0.0', 4443),
        SimpleHTTPServer.SimpleHTTPRequestHandler)

httpd.socket = ssl.wrap_socket (httpd.socket,
        keyfile="/opt/janus/share/janus/certs/mycert.key",
        certfile='/opt/janus/share/janus/certs/mycert.pem', server_side=True)

httpd.serve_forever()
---------------------------------------------------------

- Connect to "https://1..1.1:4443" on Chrome. But I saw the error page "Your connection is not private".
  (This is because test certificate files)
  Click ADVANCED -> Click "Proceed to 125.143.7.89 (unsafe)"
  After that I could see the Janus page.

Hope this helps~


2017년 8월 16일 수요일 오후 3시 43분 14초 UTC+9, Ayush Rastogi 님의 말:

ELIYADURAGE SRIYAN FERNANDO

unread,
Nov 22, 2017, 1:38:42 AM11/22/17
to meetecho-janus
Sorry for the interrupting.i'm newbie to here..i apache2 as a web server and i provided certificates. then i got the janus page via HTTPS.then when i try access vedio room it will display as "Probably a network error ,is the gateway down". what is that?

Mirko Brankovic

unread,
Nov 22, 2017, 2:33:38 AM11/22/17
to meetecho-janus
Check with netstat -tlnp if janus is listening on correct ip and port that you specified in transport config, and that firewall is not blocking your requests.

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages