From 156e8b9c9f7dc7558826e7b1bafe458abe7acf7d Mon Sep 17 00:00:00 2001 From: richjohnrambo Date: Wed, 16 Sep 2026 16:05:39 +0800 Subject: [PATCH] fix: align workbench default secret --- Dockerfile | 2 +- server/manifest/docker/entrypoint.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dc7619a..826c589 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,7 +60,7 @@ ENV IM_INTERNAL_API_SERVICE_NAME=hotgo-admin ENV IM_INTERNAL_API_SECRET= ENV IM_WORKBENCH_API_BASE_URL=http://im-workbench.workbench-system.svc.cluster.local:6061 ENV IM_WORKBENCH_API_SERVICE_NAME=hotgo-admin -ENV IM_WORKBENCH_API_SECRET= +ENV IM_WORKBENCH_API_SECRET=hotgo-workbench-internal ENV IM_CONFIG_API_SERVICE_NAME=im-server ENV IM_CONFIG_API_SECRET= diff --git a/server/manifest/docker/entrypoint.sh b/server/manifest/docker/entrypoint.sh index 666039e..c441338 100644 --- a/server/manifest/docker/entrypoint.sh +++ b/server/manifest/docker/entrypoint.sh @@ -8,6 +8,8 @@ if [ -z "${IM_WORKBENCH_API_SECRET:-}" ]; then export IM_WORKBENCH_API_SECRET="$IM_INTERNAL_API_SECRET" elif [ -n "${IM_ADMIN_API_SECRET:-}" ]; then export IM_WORKBENCH_API_SECRET="$IM_ADMIN_API_SECRET" + else + export IM_WORKBENCH_API_SECRET="hotgo-workbench-internal" fi fi