mirror of
https://github.com/NapNeko/NapCat-Docker.git
synced 2025-12-19 22:52:10 +08:00
feat: config HTTP_SECRET
This commit is contained in:
parent
a11d502981
commit
c81e3f2281
@ -2,7 +2,7 @@
|
||||
"httpPort": HTTP_PORT,
|
||||
"httpHost": "HTTP_HOST",
|
||||
"httpPostUrls": ["HTTP_URLS"],
|
||||
"httpSecret": "",
|
||||
"httpSecret": "HTTP_SECRET",
|
||||
"wsPort": WS_PORT,
|
||||
"wsHost": "WS_HOST",
|
||||
"wsReverseUrls": ["WS_URLS"],
|
||||
|
||||
@ -119,6 +119,11 @@ if [ ! -f "$CONFIG_PATH" ]; then
|
||||
else
|
||||
sed -i "s/MUSIC_SIGN_URL//" $CONFIG_PATH
|
||||
fi
|
||||
if [ "$HTTP_SECRET" ]; then
|
||||
sed -i "s/HTTP_SECRET/$HTTP_SECRET/" $CONFIG_PATH
|
||||
else
|
||||
sed -i "s/HTTP_SECRET//" $CONFIG_PATH
|
||||
fi
|
||||
fi
|
||||
|
||||
export FFMPEG_PATH=/usr/bin/ffmpeg
|
||||
|
||||
Loading…
Reference in New Issue
Block a user