Discuz! Board
标题: 关于apprtc使用https的一些文章 [打印本页]
作者: zangcf 时间: 2016-8-6 14:58
标题: 关于apprtc使用https的一些文章
As I mentioned, you can run on HTTP if you start AppRTC on localhost:8080 by starting the instance without any parameters /google_appengine/dev_appserver.py /apprtc/out/app_engine/ then navigate to http://localhost:8080 in your browser.
If you want to run SSL you need to setup a proxy that forwards your traffic to the AppRTC instance. I recommend stunnel for development (if you use it for production make sure to secure it properly).
Basic steps:
- Create an SSL private key and generate certificates
- Make sure stunnel runs in server modeby adding/setting client = no in stunnel.conf.
- Setup a SSL handler in stunnel.conf:
accept = 443connect = 127.0.0.1:8080cert = /etc/stunnel/stunnel.pem- Start the AppRTC instance: /google_appengine/dev_appserver.py /apprtc/out/app_engine/
- Browse to https://iptoapprtc
- Do note that the Turn server might not work due to not accessing AppRTC on localhost:8080 directly.
作者: zangcf 时间: 2016-8-6 15:31
http://www.jianshu.com/p/5431a7066f47
戴维营的这个
| 欢迎光临 Discuz! Board (http://47.89.242.157:9000/bbs/discuz/) |
Powered by Discuz! X3.2 |