Need help with github-proxy?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

xiaoxinda
152 Stars 26 Forks MIT License 20 Commits 0 Opened issues

Services available

!
?

Need anything else?

Contributors list

No Data

(注:本程序为简单实现,因纯属业余时间编写,开发比较仓促,欢迎完善)
请遵循法律法规,不要用来做违法的事情
1.staticweb目录您需要进行nginx配置为站点。
2.GatewayWorker下startgateway中配置wss所需要的证书

$context = array(

     
'ssl' => array(// 请使用绝对路径

         `'local
cert' =>'/xxxxx.pem', //也可以是crt文件


         
'localpk' => 'xxxxxx.key',

         
'verify
peer' => false, // 'allowselfsigned' => true, //如果是自签名证书需要开启此选项

     
)

);

3.启动GatewayWorker
cd 您的GatewayWorker路径/GatewayWorker ; php start.php start
4.start_sync中可根据您的服务器配置来设置:进程数
task进程数可以根据需要多开一些,默认为10
$taskworker->count = 10;`
5.demo站点:点我跳转
6.本程序基于workerMan编写
7.因本人平常工作繁忙,欢迎爱好者帮忙搭建docker,请联系本人放出仓库地址
8.如有问题,可联系本人qq:9496898
9.另外,部署到香港、韩国、日本等非大陆的服务器的事情就不用我说了吧。推荐使用:www.vultr.com日本服务器
10.如果您也搭建了此服务,我们可以互粉一下友情链接,组合成一个阵营,互粉群:<a target="
blank" href="//shang.qq.com/wpa/qunwpa?idkey=f65cb90612db81ef9bee771440adb40c004933a18b7c0466a279486936aedc79">G.widora.cn 互粉群

nginx转发ws or wss示例

 upstream websocket {  
     server 127.0.0.1:8848;  
 }
 server {
     ...//...代表您的nginx其他配置

 location /wss {  
     proxy_pass http://websocket;  
     proxy_http_version 1.1;  
     proxy_set_header Upgrade $http_upgrade;  
     proxy_set_header Connection "Upgrade";  
 } 

} //配置完成后,修改 style/js/index.js中连接ws部分为: // __this.ws = new WebSocket("ws" + (ishttps ? "s": "") + "://" + document.domain + "/wss"); //nginx配置ssl做8848转发

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.