From 036c2182a5e268d5a0183ab0d1a8e28e2ee53796 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Sun, 17 Nov 2024 10:18:56 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9aiocqhttp=E9=80=82?= =?UTF-8?q?=E9=85=8D=E5=99=A8=E9=BB=98=E8=AE=A4=E7=AB=AF=E5=8F=A3=E4=B8=BA?= =?UTF-8?q?2280?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yaml | 3 ++- templates/platform.json | 2 +- templates/schema/platform.json | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index fcc6c076..e78d66e8 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -8,5 +8,6 @@ services: - ./plugins:/app/plugins restart: on-failure ports: - - 5300:5300 + - 5300:5300 # 供 WebUI 使用 + - 2280-2290:2280-2290 # 供消息平台适配器方向连接 # 根据具体环境配置网络 diff --git a/templates/platform.json b/templates/platform.json index 74adf833..ae39b207 100644 --- a/templates/platform.json +++ b/templates/platform.json @@ -12,7 +12,7 @@ "adapter": "aiocqhttp", "enable": false, "host": "0.0.0.0", - "port": 8080, + "port": 2280, "access-token": "" }, { diff --git a/templates/schema/platform.json b/templates/schema/platform.json index 11b5b2f9..074c9ae2 100644 --- a/templates/schema/platform.json +++ b/templates/schema/platform.json @@ -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",