configuring HA proxy for janus

202 views
Skip to first unread message

Linux Teki

unread,
Oct 30, 2019, 4:16:30 AM10/30/19
to meetecho-janus
Hello janusers,

I have a janus server(sip plugin) configured on HTTPS(using openssl) and working successfully. Now I am trying to deploy a Ha-proxy in front of my Janus and facing some issues while configuring the same. Can someone help me out on this please?

Below is my haproxy config code :

frontend website
      bind *:8089 ssl cert /etc/ssl/certs/mydomain.crt
      default_backend app-main

backend app-main
    balance roundrobin
    redirect scheme https if !{ ssl_fc }
    server webrtc  192.168.1.217:8089 check  maxconn 30

    acl p_root path -i /janus

In my siptest.js, I have given my haproxy IP (https://192.168.1.28:8089)  in place of janus server IP.

After doing above changes, I tried opening the demo pages, once i click the start button it is prompting below error on browser console.

OPTIONS https://192.168.1.28:8089/ net::ERR_CERT_AUTHORITY_INVALID

In haproxy logs I found the handshake failue error.

Note: The certificate which is mentioned in haproxy config is a openssl cert created locally.

Am I missing something? How to get a valid cert on to haproxy?



Reply all
Reply to author
Forward
0 new messages