mirror of
https://github.com/NapNeko/NapCat-Docker.git
synced 2025-12-19 06:30:12 +08:00
update readme
This commit is contained in:
parent
0c32e3e4f3
commit
d5e225c47c
@ -6,6 +6,11 @@
|
||||
- [x] Linux/Amd64
|
||||
- [x] Linux/Arm64
|
||||
|
||||
## 配置
|
||||
|
||||
容器通过环境变量来配置,环境变量名称可以查看 [config.txt](./config.txt)
|
||||
|
||||
具体参数可参考[官方README](https://github.com/NapNeko/NapCatQQ?tab=readme-ov-file#%E5%90%AF%E5%8A%A8)
|
||||
|
||||
# 启动容器
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
"enableHttpPost": HTTP_POST_ENABLE,
|
||||
"enableWs": WS_ENABLE,
|
||||
"enableWsReverse": WSR_ENABLE,
|
||||
"messagePostFormat": "array",
|
||||
"messagePostFormat": "MESSAGE_POST_FORMAT",
|
||||
"reportSelfMessage": RSM_ENABLE,
|
||||
"debug": DEBUG_ENABLE,
|
||||
"enableLocalFile2Url": F2U_ENABLE,
|
||||
|
||||
@ -93,7 +93,9 @@ if [ ! -f "$CONFIG_PATH" ]; then
|
||||
fi
|
||||
|
||||
if [ "$MESSAGE_POST_FORMAT" ]; then
|
||||
sed -i "s/\"messagePostFormat\": \"array\"/\"messagePostFormat\": \"$MESSAGE_POST_FORMAT\"/" $CONFIG_PATH
|
||||
sed -i "s/MESSAGE_POST_FORMAT/$MESSAGE_POST_FORMAT/" $CONFIG_PATH
|
||||
else
|
||||
sed -i "s/MESSAGE_POST_FORMAT/array/" $CONFIG_PATH
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user