From b12b2d8de512415a92596b7ebb350387256d97d0 Mon Sep 17 00:00:00 2001 From: WuYafeng Date: Fri, 27 Dec 2024 23:38:44 +0800 Subject: [PATCH] Add environment WEBUI_PREFIX --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index b7dd0b8..f9254d8 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,12 +14,13 @@ fi # 配置 WebUI Token CONFIG_PATH=/app/napcat/config/webui.json + if [ ! -f "${CONFIG_PATH}" ] && [ -n "${WEBUI_TOKEN}" ]; then echo "正在配置 WebUI Token..." cat > "${CONFIG_PATH}" << EOF { "host": "0.0.0.0", - "prefix": "", + "prefix": "${WEBUI_PREFIX}", "port": 6099, "token": "${WEBUI_TOKEN}", "loginRate": 3