Skip to content

Commit 1150eb5

Browse files
committed
更新readme
1 parent 8036af3 commit 1150eb5

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
[hyperf-im](https://im.jayjay.cn) https://im.jayjay.cn
2222

2323
## 功能
24-
24+
1.0
2525
- 登录注册(Http)
2626
- 单点登录(Websocket)
2727
- 私聊(Websocket)
@@ -37,6 +37,9 @@
3737
- 断线重连
3838
- 发送图片及文件
3939

40+
1.1
41+
- webrtc(视频聊天)
42+
4043
## Requirement
4144

4245
- [PHP 7.2+](https://github.com/php/php-src/releases)
@@ -60,8 +63,10 @@ composer update
6063

6164
```bash
6265
WS_URL=wss://im.jayjay.cn/im
63-
STORAGE_IMG_URL=
64-
STORAGE_FILE_URL=
66+
STORAGE_IMG_URL=$host/storage/upload/
67+
STORAGE_FILE_URL=$host/file/upload/
68+
APP_URL=https://im.jayjay.cn
69+
WEB_RTC_URL=wss://im.jayjay.cn/video
6570
```
6671
### nginx配置
6772

@@ -100,6 +105,15 @@ server{
100105
proxy_set_header Upgrade $http_upgrade;
101106
proxy_set_header Connection "upgrade";
102107
}
108+
109+
location /video {
110+
proxy_pass http://127.0.0.1:9502;
111+
proxy_http_version 1.1;
112+
proxy_read_timeout 3600s;
113+
proxy_set_header Upgrade $http_upgrade;
114+
proxy_set_header Connection "upgrade";
115+
}
116+
103117

104118
location ~ .*\.(js|ico|css|ttf|woff|woff2|png|jpg|jpeg|svg|gif|htm)$ {
105119
root /data/wwwroot/IM/public;
@@ -119,7 +133,7 @@ php bin/hyperf.php start
119133
## TODO
120134

121135
1.完善整体项目
122-
2.加入webrtc(视频聊天)
136+
2.rabbitmq消息记录,看接下来是否上分布式
123137

124138

125139
## 联系方式

0 commit comments

Comments
 (0)