Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serving switchboard over HTTPS #30

Open
glenn-kroeze opened this issue May 23, 2017 · 3 comments
Open

Serving switchboard over HTTPS #30

glenn-kroeze opened this issue May 23, 2017 · 3 comments

Comments

@glenn-kroeze
Copy link

Hi, I'm currently doing a college project which requires video and audio transmission from person to person within a browser. rtc.io seems like a great way to achieve this. I am however running into a problem. I am serving the HTML page with the rtc.io content over HTTPS, since Chrome requires HTTPS to be used when handling the webcam. While this isn't an issue perse, the problem arises when I try to connect a client to a self-hosted switchboard. Chrome will only allow me connect a client to a switchboard if the switchboard is also served over HTTPS, which it isn't as far as I can tell. What would be the correct way to connect a client to the switchboard over HTTPS?

@silviapfeiffer
Copy link
Member

Are you self-hosting a switchboard? If so, there are several ways in which you can put it behind https. Easiest is to put an nginx server in front of it. See e.g. https://www.sitepoint.com/configuring-nginx-ssl-node-js/

@glenn-kroeze
Copy link
Author

Hi, thanks a lot for your reply! I'll try to implement nginx as soon as I get the chance. I'm curious though, why doesn't rtc.io supply any solution for this at the moment, since the switchboard can only be used in practice when combined with HTTPS?

@silviapfeiffer
Copy link
Member

You can. You just need to extend the example with a node ssl module. E.g. the https or tls modules, see https://www.sitepoint.com/how-to-use-ssltls-with-node-js/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants