mirror of
https://github.com/NapNeko/NapCat-Docker.git
synced 2025-12-20 15:11:01 +08:00
feat: adapt the new config
This commit is contained in:
parent
93ffb8486a
commit
fdc8a49107
@ -52,25 +52,31 @@ if [ ! -f "$CONFIG_PATH" ]; then
|
|||||||
WS_URLS=$(chech_quotes $WS_URLS)
|
WS_URLS=$(chech_quotes $WS_URLS)
|
||||||
cat <<EOF > $CONFIG_PATH
|
cat <<EOF > $CONFIG_PATH
|
||||||
{
|
{
|
||||||
"httpHost": "$HTTP_HOST",
|
"http": {
|
||||||
"enableHttp": ${HTTP_ENABLE},
|
"enable": ${HTTP_ENABLE},
|
||||||
"httpPort": ${HTTP_PORT},
|
"host": "$HTTP_HOST",
|
||||||
"wsHost": "${WS_HOST}",
|
"port": ${HTTP_PORT},
|
||||||
"enableWs": ${WS_ENABLE},
|
"secret": "$HTTP_SECRET",
|
||||||
"wsPort": ${WS_PORT},
|
"enableHeart": ${HTTP_HEART_ENABLE},
|
||||||
"enableWsReverse": ${WSR_ENABLE},
|
"enablePost": ${HTTP_POST_ENABLE},,
|
||||||
"wsReverseUrls": $WS_URLS,
|
"postUrls": $HTTP_URLS
|
||||||
"enableHttpPost": ${HTTP_POST_ENABLE},
|
},
|
||||||
"httpPostUrls": $HTTP_URLS,
|
"ws": {
|
||||||
"enableHttpHeart": ${HTTP_HEART_ENABLE},
|
"enable": ${WS_ENABLE},
|
||||||
"httpSecret": "$HTTP_SECRET",
|
"host": "${WS_HOST}",
|
||||||
"messagePostFormat": "$MESSAGE_POST_FORMAT",
|
"port": ${WS_PORT}
|
||||||
"reportSelfMessage": ${RSM_ENABLE},
|
},
|
||||||
|
"reverseWs": {
|
||||||
|
"enable": ${WSR_ENABLE},
|
||||||
|
"urls": $WS_URLS
|
||||||
|
},
|
||||||
"debug": ${DEBUG_ENABLE},
|
"debug": ${DEBUG_ENABLE},
|
||||||
"enableLocalFile2Url": ${F2U_ENABLE},
|
|
||||||
"heartInterval": ${HEART_INTERVAL},
|
"heartInterval": ${HEART_INTERVAL},
|
||||||
"token": "$TOKEN",
|
"messagePostFormat": "$MESSAGE_POST_FORMAT",
|
||||||
"musicSignUrl": "$MUSIC_SIGN_URL"
|
"enableLocalFile2Url": ${F2U_ENABLE},
|
||||||
|
"musicSignUrl": "$MUSIC_SIGN_URL",
|
||||||
|
"reportSelfMessage": ${RSM_ENABLE},
|
||||||
|
"token": "$TOKEN"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user