krull / docker-janus

Debian based docker image for https://github.com/meetecho/janus-gateway
GNU General Public License v3.0
60 stars 49 forks source link

HTTPS #10

Closed fellipeamedeiros closed 6 years ago

fellipeamedeiros commented 6 years ago

Good morning,

What i need to change to make the server run on https? For example https://url.com:8088

Best regards, Fellipe M.

RodrigoRVieira commented 6 years ago

Hi Felipe!

You should put a Nginx as a reverse proxy to redirect requests to Janus listening on 80.

There are known issues on Janus when listening over SSL.

Regards,

Rodrigo R. Vieira

fellipeamedeiros commented 6 years ago

Hello Rodrigo, how are you?

I’m trying to run on Amazon EC2 or EBS, do you have any link showing how to use ngix as a reverse proxy?

Best regards, Fellipe M.

Em 22 de fev de 2018, à(s) 13:31, McBacker notifications@github.com<mailto:notifications@github.com> escreveu:

Hi Felipe!

You should put a Nginx as a reverse proxy to redirect requests to Janus listening on 80.

There are known issues on Janus when listening over SSL.

Regards,

Rodrigo R. Vieira

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/krull/docker-janus/issues/10#issuecomment-367738413, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASgwki6wrhGg635WZjPtIFXt90s93byAks5tXZZqgaJpZM4SPgTA.

RodrigoRVieira commented 6 years ago

I'm ok, thanks!

Just follow the documentation.

https://www.nginx.com/resources/admin-guide/reverse-proxy/

Should look like this:

location / { proxy_pass http://localhost:80; }

Regards,

Rodrigo R. Vieira

fellipeamedeiros commented 6 years ago

but nginx will not conflict with apache?

Best regards, Fellipe M.

RodrigoRVieira commented 6 years ago

Not really, just take care of routes and ports.

Grab Nginx image on Docker Hub and start playing.

ruddell commented 6 years ago

You can also configure apache2 as the reverse proxy if you are already using it, see the "Deploying Janus behind a web frontend" section of https://janus.conf.meetecho.com/docs/deploy.html

fellipeamedeiros commented 6 years ago

Hello guys, good night!

Thanks for the help. Works perfectly.

Best regards, Fellipe M.

Em 22 de fev de 2018, à(s) 19:10, Jon Ruddell notifications@github.com<mailto:notifications@github.com> escreveu:

You can also configure apache2 as the reverse proxy if you are already using it, see the "Deploying Janus behind a web frontend" section of https://janus.conf.meetecho.com/docs/deploy.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/krull/docker-janus/issues/10#issuecomment-367839739, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASgwksDGdQ9Yiobsg9Txw4FYkHBz46Nmks5tXeXmgaJpZM4SPgTA.

krull commented 6 years ago

Hey guys! Thanks for the help @McBacker @ruddell ! Apologies for the tardy reply!

Yes, a reverse proxy is needed to handle https as libmicrohttpd has an issue with CPU load per noted here.

Anyways, I'd rather have nginx handle all outbound facing connections via https, and just have my docker instance mapped to localhost that nginx can communicate with.

All the best,

krull