Skip to content

Commit

Permalink
chore: 修改aiocqhttp适配器默认端口为2280
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Nov 17, 2024
1 parent 6238f43 commit 036c218
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ services:
- ./plugins:/app/plugins
restart: on-failure
ports:
- 5300:5300
- 5300:5300 # 供 WebUI 使用
- 2280-2290:2280-2290 # 供消息平台适配器方向连接
# 根据具体环境配置网络
2 changes: 1 addition & 1 deletion templates/platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"adapter": "aiocqhttp",
"enable": false,
"host": "0.0.0.0",
"port": 8080,
"port": 2280,
"access-token": ""
},
{
Expand Down
6 changes: 3 additions & 3 deletions templates/schema/platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@
"host": {
"type": "string",
"default": "0.0.0.0",
"description": "监听的 IP 地址,一般就保持 0.0.0.0 就可以了。使用 aiocqhttp 时,LangBot 作为服务端被动等待框架连接,请在 Lagrange 等框架中设置被动 ws 地址或者反向 ws 地址(具体视框架而定)为 LangBot 监听的地址,且路径为/ws,例如:ws://127.0.0.1:8080/ws"
"description": "监听的 IP 地址,一般就保持 0.0.0.0 就可以了。使用 aiocqhttp 时,LangBot 作为服务端被动等待框架连接,请在 Lagrange 等框架中设置被动 ws 地址或者反向 ws 地址(具体视框架而定)为 LangBot 监听的地址,且路径为/ws,例如:ws://127.0.0.1:2280/ws"
},
"port": {
"type": "integer",
"default": 8080,
"description": "设置监听的端口,默认8080,需在 Lagrange 等框架中设置为与此处一致的端口"
"default": 2290,
"description": "设置监听的端口,默认2280,需在 Lagrange 等框架中设置为与此处一致的端口"
},
"access-token": {
"type": "string",
Expand Down

0 comments on commit 036c218

Please sign in to comment.