update readme

This commit is contained in:
initialencounter 2024-04-23 18:50:31 +08:00
parent 0c32e3e4f3
commit d5e225c47c
3 changed files with 9 additions and 2 deletions

View File

@ -6,6 +6,11 @@
- [x] Linux/Amd64 - [x] Linux/Amd64
- [x] Linux/Arm64 - [x] Linux/Arm64
## 配置
容器通过环境变量来配置,环境变量名称可以查看 [config.txt](./config.txt)
具体参数可参考[官方README](https://github.com/NapNeko/NapCatQQ?tab=readme-ov-file#%E5%90%AF%E5%8A%A8)
# 启动容器 # 启动容器

View File

@ -8,7 +8,7 @@
"enableHttpPost": HTTP_POST_ENABLE, "enableHttpPost": HTTP_POST_ENABLE,
"enableWs": WS_ENABLE, "enableWs": WS_ENABLE,
"enableWsReverse": WSR_ENABLE, "enableWsReverse": WSR_ENABLE,
"messagePostFormat": "array", "messagePostFormat": "MESSAGE_POST_FORMAT",
"reportSelfMessage": RSM_ENABLE, "reportSelfMessage": RSM_ENABLE,
"debug": DEBUG_ENABLE, "debug": DEBUG_ENABLE,
"enableLocalFile2Url": F2U_ENABLE, "enableLocalFile2Url": F2U_ENABLE,

View File

@ -93,7 +93,9 @@ if [ ! -f "$CONFIG_PATH" ]; then
fi fi
if [ "$MESSAGE_POST_FORMAT" ]; then 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
fi fi