configure janus with apache on HTTPS

2,608 views
Skip to first unread message

Gurwinder Waraich

unread,
Oct 17, 2017, 4:08:20 PM10/17/17
to meetecho-janus
Hi there
It's actually weird after following guide i'm still on same spot
I'm actually a newbie and i just installed janus on ubuntu server. The demos are not running, it says it needs HTTPS. So, i had enabled https in configuration, port is listening to 8089. But i don't know how to actually configure or which files to edit to achieve the result. I followed the guide https://janus.conf.meetecho.com/docs/deploy.html 
But as i am new to this, i don't know where to put var server = "https://" + window.location.hostname + ":8089/janus"; to make it work with Apache.

Please help!!!
Thanks

alejo...@gmail.com

unread,
Oct 17, 2017, 4:35:40 PM10/17/17
to meetecho-janus
janus is an api, you need a frontend in order to access janus, in https://github.com/meetecho/janus-gateway/tree/master/html there are various frontends examples you can use, deploy them with a server of your choice (apache2 or nginx), so everything in that link i gave you, you put it on /var/www/hml , if you are going to use https, you will need to configure ssl for it. 

Gurwinder Waraich

unread,
Oct 17, 2017, 7:45:07 PM10/17/17
to meetecho-janus
Thanks for the information. Some of demos are working properly with http. When i try to use screen sharing demo it give me error. Please check the attached screenshot. If i install SSL on URL. It shows me "seems like gateway is down". I think i need to install SSL on janus to make it work with HTTPS.
But i'm not able to figure out how i install SSL on janus so it will work with HTTPS (Apache - ubuntu)

Please suggest something...
Thanks

Gurwinder Waraich

unread,
Oct 17, 2017, 8:09:01 PM10/17/17
to meetecho-janus
sorry..!!! forgot to add screenshot. So, here is screenshot
Selection_053.png

alejo...@gmail.com

unread,
Oct 18, 2017, 8:00:58 AM10/18/17
to meetecho-janus
you need a green lock in order to use webrtc(screen sharing, camera, microphone), theres no other way around it, you need to install certs and configure them, probably also a domain, i wasted so much time trying other things.

Gurwinder Waraich

unread,
Oct 18, 2017, 9:08:32 AM10/18/17
to meetecho-janus
Yea, i know that... But the thing is that i had already applied SSL (green lock) on domain but i don't know how to configure SSL with janus or how to run janus with SSL settings. When i run the site with HTTPS, it give me error "is the gateway down". Please look at the screenshot.
However, same thing work with HTTP.
Selection_054.png

Lorenzo Miniero

unread,
Oct 18, 2017, 9:17:22 AM10/18/17
to meetecho-janus
Posting tons of screenshots will not help. Everything is explained in the documentation that you read already: if you don't know what proxying via a web server means, you should go study that first somewhere, and then apply that knowledge to what the documentation explains you need to do.

L.

Mirko Brankovic

unread,
Oct 18, 2017, 9:17:56 AM10/18/17
to meetecho-janus
make sure you enabled secure port on transport you use, so either http or websocket, but the secure part must be enabled (and firewall must noyt be blocking you from webserver point of view).
certificates in transport can stay self-signed, janus ones since they won't be used for root checking

--
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.



--
Regards,
Mirko

Gurwinder Waraich

unread,
Oct 18, 2017, 9:38:02 AM10/18/17
to meetecho-janus
Hi
Thanks for that information. I really appreciate your help. I just need to know that where (which file to edit) should i define 


var server = "https://" + window.location.hostname + ":8089/janus";

I want to know only this little thing. Please respond.

8089 ---> port listening
transport http ---> https is enabled

Thanks
Gary

Mirko Brankovic

unread,
Oct 18, 2017, 10:03:10 AM10/18/17
to meetecho-janus
in case webserver and janus are not on same server/instance, then you need to change:
var server = "https://" + window.location.hostname + ":8089/janus";
to 

IP of the https listening janus instance

--
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.



--
Regards,
Mirko

Mirko Brankovic

unread,
Oct 18, 2017, 10:03:45 AM10/18/17
to meetecho-janus
but the file should be in etc/janus/janus.transport.http.conf

--
Regards,
Mirko

Gurwinder Waraich

unread,
Oct 23, 2017, 3:58:16 PM10/23/17
to meetecho-janus
Thanks for your help. Now Janus is installed and working with both HTTP and HTTPS. 

Regards
Gary 

Gurwinder Waraich

unread,
Oct 25, 2017, 8:32:02 PM10/25/17
to meetecho-janus
Hi there

I got an issue with screensharing, it is not working properly. Please see the attached screenshot.
I do not get any pop up which share session id, it just keep on displaying publishing as it is working on https://janus.conf.meetecho.com/screensharingtest.html 
I'm getting this error:

[3266870135843780] Creating ICE agent (ICE Full mode, controlled)
[WARN] [3266870135843780] Still waiting for the DTLS stack for component 1 in stream 1...
[WARN] [3266870135843780] Still waiting for the DTLS stack for component 1 in stream 1...
[WARN] [3266870135843780] Still waiting for the DTLS stack for component 1 in stream 1...
[WARN] [3266870135843780] Still waiting for the DTLS stack for component 1 in stream 1...
[WARN] [3266870135843780] Still waiting for the DTLS stack for component 1 in stream 1...

Please explain what would cause this issue 
Please help!!!
Selection_057.png

ELIYADURAGE SRIYAN FERNANDO

unread,
Nov 23, 2017, 4:01:06 AM11/23/17
to meetecho-janus
Hi, Sorry for the interrupting.janus installed on my local machine.i enable the HTTP and HTTPS.Now my remote machine and local machine connected to video room and its working properly. but problem is when i want to connect that url(HTTPS://) using my phone.then  it will show janus page.but i can not join to the video room.Why is that?
Reply all
Reply to author
Forward
0 new messages