mirror of
https://github.com/NapNeko/NapCat-Docker.git
synced 2025-12-19 22:52:10 +08:00
feat: WebUI Token config (close #16)
This commit is contained in:
parent
dcc4a2a39e
commit
02dfb9be5d
@ -6,6 +6,10 @@ if [ ! -f "$CONFIG_PATH" ]; then
|
|||||||
cp -f config.txt $CONFIG_PATH
|
cp -f config.txt $CONFIG_PATH
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$WEBUI_TOKEN" ]; then
|
||||||
|
echo "{\"port\": 6099,\"token\": \"$WEBUI_TOKEN\",\"loginRate\": 3}" > napcat/config/webui.json
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$HTTP_PORT" ]; then
|
if [ "$HTTP_PORT" ]; then
|
||||||
sed -i "s/HTTP_PORT/$HTTP_PORT/" $CONFIG_PATH
|
sed -i "s/HTTP_PORT/$HTTP_PORT/" $CONFIG_PATH
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user