Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1|回复: 1
打印 上一主题 下一主题

关于apprtc使用https的一些文章

[复制链接]

1198

主题

2060

帖子

7058

积分

超级版主

Rank: 8Rank: 8

积分
7058
跳转到指定楼层
楼主
发表于 2016-8-6 14:58:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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.

回复

使用道具 举报

1198

主题

2060

帖子

7058

积分

超级版主

Rank: 8Rank: 8

积分
7058
沙发
 楼主| 发表于 2016-8-6 15:31:50 | 只看该作者
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Comsenz Inc.

GMT+8, 2025-12-14 18:49 , Processed in 0.011937 second(s), 8 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表