搭建apprtc服务器(篇章二)
2017-06-27 00:00
405 查看
摘要: 有坑你得知道
在开启服务之后会报一个错误,pushState 字样的。
路径 /root/apprtc/src/web_app/js/appcontroller.js
AppController.prototype.pushCallNavigation_ = function(roomId, roomLink) {
//不用看
//roomLink=roomLink.replace(/192\.168\.0\.176\//,'192.168.0.176:8080');
if (!isChromeApp()) {
//看这里注释掉
// window.history.pushState({'roomId': roomId, 'roomLink': roomLink}, roomId,
// roomLink);
}
};
AppController.prototype.displaySharingInfo_ = function(roomId, roomLink) {
//不用看
//roomLink=roomLink.replace(/192\.168\.0\.176\//,'192.168.0.176:8080');
this.roomLinkHref_.href = roomLink;
this.roomLinkHref_.text = roomLink;
this.roomLink_ = roomLink;
this.pushCallNavigation_(roomId, roomLink);
this.activate_(this.sharingDiv_);
};
------------nginx ---------没错请忽略。。。。。。。。。。。。
upstream roomserver{
server 192.168.0.176:8080;
}
server {
listen 80;
server_name 192.168.0.176;
return 301 https://$server_name$request_uri; }
server {
root /usr/share/nginx/html;
index index.php index.html index.htm;
listen 443;
ssl on;
ssl_certificate /root/cert/hxtest.crt.pem;
ssl_certificate_key /root/cert/hxtest.key.pem;
server_name 192.168.0.176;
access_log /var/log/nginx/hxtest.log;
location / {
proxy_pass http://roomserver$request_uri; proxy_set_header Host $host;
}
location ~.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
在开启服务之后会报一个错误,pushState 字样的。
路径 /root/apprtc/src/web_app/js/appcontroller.js
AppController.prototype.pushCallNavigation_ = function(roomId, roomLink) {
//不用看
//roomLink=roomLink.replace(/192\.168\.0\.176\//,'192.168.0.176:8080');
if (!isChromeApp()) {
//看这里注释掉
// window.history.pushState({'roomId': roomId, 'roomLink': roomLink}, roomId,
// roomLink);
}
};
AppController.prototype.displaySharingInfo_ = function(roomId, roomLink) {
//不用看
//roomLink=roomLink.replace(/192\.168\.0\.176\//,'192.168.0.176:8080');
this.roomLinkHref_.href = roomLink;
this.roomLinkHref_.text = roomLink;
this.roomLink_ = roomLink;
this.pushCallNavigation_(roomId, roomLink);
this.activate_(this.sharingDiv_);
};
------------nginx ---------没错请忽略。。。。。。。。。。。。
upstream roomserver{
server 192.168.0.176:8080;
}
server {
listen 80;
server_name 192.168.0.176;
return 301 https://$server_name$request_uri; }
server {
root /usr/share/nginx/html;
index index.php index.html index.htm;
listen 443;
ssl on;
ssl_certificate /root/cert/hxtest.crt.pem;
ssl_certificate_key /root/cert/hxtest.key.pem;
server_name 192.168.0.176;
access_log /var/log/nginx/hxtest.log;
location / {
proxy_pass http://roomserver$request_uri; proxy_set_header Host $host;
}
location ~.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
相关文章推荐
- 搭建apprtc服务器(篇章一)
- 搭建apprtc服务器(篇章三)
- 搭建自己的AppRTCDemo服务器
- webrtc 服务器搭建(1)apprtc房间服务器
- 搭建APPRTC服务器时,遇到的coturn服务器配置及调用的问题解决
- Ubuntu14.04搭建appRTC服务器
- CentOS6.5搭建APPRTC服务器
- WebRTC AppRTC服务器环境搭建
- 3Com office connect+Server_U 搭建Ftp 服务器遇到的问题
- 版本控制CVS服务器的搭建
- linux开发服务器环境搭建
- [转]ASP.NET2.0服务器的搭建~汗,网上资料少得可怜
- 组网不求人!搭建简易Linux局网服务器
- 搭建OTA下载服务器
- 在Linux上搭建WEB服务器:基本概念、PHP zt