How to configure HTTPS connection in janus.

2,269 views
Skip to first unread message

nitishb...@gmail.com

unread,
Apr 2, 2016, 2:45:17 PM4/2/16
to meetecho-janus

[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 = no ; Whether to enable HTTPS (default=no)
;secure_port = 8889 ; Web server HTTPS port, if enabled
;acl = 127.,192.168.0. ; Only allow requests coming from this comma separated list of addresses


[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 ; Web server HTTPS port, if enabled
;acl = 127.,192.168.0. ; Only allow requests coming from this comma separated list of addresses


I made above changes but getting error :- 

[FATAL] [transports/janus_http.c:janus_http_init:488] Couldn't start secure webserver on port 8889...

Lorenzo Miniero

unread,
Apr 2, 2016, 2:52:18 PM4/2/16
to meetecho-janus
Seems to work fine here. Maybe your version of libmicrohttpd was compiled without HTTPS support.
Anyway, using HTTPS in Janus itself it not advisable, due to the fact that for a libmicrohttpd bug you can incur in high CPU usage when you enable it.
The best way to do HTTPS with Janus is to just use HTTP in Janus, and use a web frontend like HTTPD or nginx for HTTPS and proxy requests: https://janus.conf.meetecho.com/docs/deploy

L.
Reply all
Reply to author
Forward
0 new messages