Add environment WEBUI_PREFIX

This commit is contained in:
WuYafeng 2024-12-27 23:38:44 +08:00 committed by GitHub
parent 46aa94acbb
commit b12b2d8de5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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