:8089/janus/info Https Not Working

635 views
Skip to first unread message

Umut

unread,
Sep 8, 2021, 10:34:56 AM9/8/21
to meetecho-janus

I have reviewed the subject and although I have made the necessary edits

service janus status output;

Sep 08 15:43:19 server.xx.com janus[1846]: JANUS WebSockets transport plugin initialized!
Sep 08 15:43:19 server.xx.com janus[1846]: Loading transport plugin 'libjanus_http.so'...
Sep 08 15:43:19 server.xx.com janus[1846]: WebSockets thread started
Sep 08 15:43:19 server.xx.com janus[1846]: HTTP transport timer started
Sep 08 15:43:19 server.xx.com janus[1846]: HTTP webserver started (port 8088, /janus path listener)...
Sep 08 15:43:19 server.xx.com janus[1846]: [FATAL] [transports/janus_http.c:janus_http_init:843] Cou...9...
Sep 08 15:43:19 server.xx.com janus[1846]: Admin/monitor HTTP webserver started (port 7088, /admin p...)...
Sep 08 15:43:19 server.xx.com janus[1846]: [FATAL] [transports/janus_http.c:janus_http_init:901] Cou...9...
Sep 08 15:43:19 server.xx.com janus[1846]: JANUS REST (HTTP/HTTPS) transport plugin initialized!
Sep 08 15:46:13 server.xx.com janus[1846]: [ERR] [transports/janus_http.c:janus_http_handler:1436] I...rl /

Bagus Facsi Aginsa

unread,
Sep 8, 2021, 11:13:39 AM9/8/21
to meetecho-janus
Have you check this config /opt/janus/etc/janus/janus.transport.http.cfg
Check "https" directive. is true or false?

Umut

unread,
Sep 9, 2021, 3:44:20 AM9/9/21
to meetecho-janus
/opt/janus/etc/janus/janus.transport.http.jcfg
I have the file your tall .cfg is it okay?

janus.transport.http.jcfg content:

general: {
        events = true # Whether to notify event handlers about transport events (default=true)
        json = "indented" # Whether the JSON messages should be indented (default),
                                                                        # plain (no indentation) or compact (no indentation and no spaces)
        base_path = "/janus" # Base path to bind to in the web server (plain HTTP only)
        http = true # Whether to enable the plain HTTP interface
        port = 8088 # Web server HTTP port
        #interface = "eth0" # Whether we should bind this server to a specific interface only
        #ip = "192.168.0.1" # Whether we should bind this server to a specific IP address (v4 or v6) only
        https = true # Whether to enable HTTPS (default=false)
        secure_port = 8089 # Web server HTTPS port, if enabled
        #secure_interface = "eth0" # Whether we should bind this server to a specific interface only
        #secure_ip = "192.168.0.1" # Whether we should bind this server to a specific IP address (v4 or v6) only
        #acl = "127.,192.168.0." # Only allow requests coming from this comma separated list of addresses
}

admin: {
        admin_base_path = "/admin" # Base path to bind to in the admin/monitor web server (plain HTTP only)
        admin_http = true # Whether to enable the plain HTTP interface
        admin_port = 7088 # Admin/monitor web server HTTP port
        #admin_interface = "eth0" # Whether we should bind this server to a specific interface only
        #admin_ip = "192.168.0.1" # Whether we should bind this server to a specific IP address (v4 or v6) only
        admin_https = true # Whether to enable HTTPS (default=false)
        admin_secure_port = 7889 # Admin/monitor web server HTTPS port, if enabled
        #admin_secure_interface = "eth0" # Whether we should bind this server to a specific interface only
        #admin_secure_ip = "192.168.0.1 # Whether we should bind this server to a specific IP address (v4 or v6) only
        #admin_acl = "127.,192.168.0." # Only allow requests coming from this comma separated list of addresses
}

certificates: {
        cert_pem = "/home/xxx/ssl/certs/xxx.crt"
        cert_key = "/home/xxx/ssl/keys/xxx.key"
}

8 Eylül 2021 Çarşamba tarihinde saat 18:13:39 UTC+3 itibarıyla facsi....@gmail.com şunları yazdı:
Message has been deleted

Вадим Борисович Ковенко

unread,
Sep 23, 2021, 3:22:06 PM9/23/21
to meetecho-janus
Working config

general: {
        json = "indented"
        base_path = "/janus"
        http = true
        port = 8088
        https = true
        secure_port = 8089
}

certificates: {
        cert_pem = "/opt/janus/etc/ssl/cert.pem"
        cert_key = "/opt/janus/etc/ssl/key.pem"
        cert_pwd = ""
}

Check the netstat -ltn command to see if the port is open for listening for all interfaces 0.0.0.0:8089.
Try to connect telnet xx.com 8089, will the connection be accepted?
You must use a trusted certificate, not a self-signed certificate.
The connection should be based on a domain name, not an ip address.


четверг, 9 сентября 2021 г. в 10:44:20 UTC+3, Umut:

John Jim

unread,
Sep 24, 2021, 12:54:31 PM9/24/21
to meetecho-janus
Hi
Run Janus as root i.e. sudo /opt/janus/bin/janus otherwise the https part is not working (at least in my case).
Best,
John
Reply all
Reply to author
Forward
0 new messages