From c81e3f2281590207ea2a24849117fb92c97c8381 Mon Sep 17 00:00:00 2001 From: initialencounter <2911583893@qq.com> Date: Mon, 6 May 2024 21:20:17 +0800 Subject: [PATCH] feat: config HTTP_SECRET --- config.txt | 2 +- entrypoint.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config.txt b/config.txt index a3a01a8..caa0f97 100644 --- a/config.txt +++ b/config.txt @@ -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"], diff --git a/entrypoint.sh b/entrypoint.sh index ba7d14f..fd186f6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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