搭建apprtc服務器(篇章二)

在開啓服務以後會報一個錯誤,pushState 字樣的。php

路徑 /root/apprtc/src/web_app/js/appcontroller.jshtml

 


AppController.prototype.pushCallNavigation_ = function(roomId, roomLink) {nginx

    //不用看
    //roomLink=roomLink.replace(/192\.168\.0\.176\//,'192.168.0.176:8080');
  if (!isChromeApp()) {web

//看這裏註釋掉
 //  window.history.pushState({'roomId': roomId, 'roomLink': roomLink}, roomId,
 //       roomLink);
  }
};app

AppController.prototype.displaySharingInfo_ = function(roomId, roomLink) {this

    //不用看
    //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_);
};prototype

 

 

 

------------nginx ---------沒錯請忽略。。。。。。。。。。。。unix

upstream roomserver{
    server 192.168.0.176:8080;
}server

server {
    listen 80;
    server_name 192.168.0.176;
    return 301 https://$server_name$request_uri;
}htm

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;     } }

相關文章
相關標籤/搜索