Skip to content

Commit 2a06f8e

Browse files
committed
1. 解决内网回环地址不识别2.解决网址消息不识别.3增加图片预览
2 parents 2f29c47 + 4960507 commit 2a06f8e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff 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
### 源码方式
2022
1. 安装nodejs,node版本没有测试,我用的是 `16.20.2`
2123
2. 下载源码
@@ -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
本项目仅用于学习交流,请勿用于非法用途,否则后果自负。

0 commit comments

Comments
 (0)