File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ demo演示:https://fagedongxi.com
1616## 部署/启动
1717> 自` 1.1.0 ` 版本后,不再需要单独部署网页端了,仅启动一个服务端即可
1818
19+ 参考视频:https://v.douyin.com/zp_dXkV1fys/
20+
1921### 源码方式
20221 . 安装nodejs,node版本没有测试,我用的是 ` 16.20.2 `
21232 . 下载源码
@@ -27,5 +29,29 @@ demo演示:https://fagedongxi.com
2729* 默认监听 ` 8081 ` 端口,可通过参数指定端口,例如 ` ./internal-chat-linux 8082 `
2830* 如果你用windows,可参考 https://v.douyin.com/CeiJahpLD/ 注册成服务
2931
32+ ### nginx代理配置样例
33+ ```
34+ server
35+ {
36+ server_name fagedongxi.com;
37+ index index.html;
38+ listen 80;
39+
40+ location / {
41+ proxy_pass http://127.0.0.1:8081/;
42+ }
43+
44+ location /ws/ {
45+ proxy_pass http://127.0.0.1:8081/ws/;
46+ proxy_http_version 1.1;
47+ proxy_set_header Host $host;
48+ proxy_set_header Upgrade $http_upgrade;
49+ proxy_set_header Connection "upgrade";
50+ proxy_set_header X-Real-IP $remote_addr;
51+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
52+ }
53+
54+ }
55+ ```
3056## 免责声明:
3157本项目仅用于学习交流,请勿用于非法用途,否则后果自负。
You can’t perform that action at this time.
0 commit comments