From 641cd79b2a2a332789cd788f6d51403c8f0e1b6a Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Sat, 13 Dec 2025 07:21:03 +0800 Subject: [PATCH] Fix: add external url config to frontend --- vita/cm.frontend.yaml | 7 +++++++ vita/deploy.frontend.yaml | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 vita/cm.frontend.yaml diff --git a/vita/cm.frontend.yaml b/vita/cm.frontend.yaml new file mode 100644 index 0000000..a885c00 --- /dev/null +++ b/vita/cm.frontend.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: vita-frontend-config +data: + EXTERNAL_URL: https://go2025.konchin.com diff --git a/vita/deploy.frontend.yaml b/vita/deploy.frontend.yaml index 2a9ea9d..3e0b449 100644 --- a/vita/deploy.frontend.yaml +++ b/vita/deploy.frontend.yaml @@ -18,6 +18,12 @@ spec: containers: - name: frontend image: gitea.konchin.com/go2025/frontend:main + env: + - name: EXTERNAL_URL + valueFrom: + configMapKeyRef: + name: vita-frontend-config + key: EXTERNAL_URL imagePullSecrets: - name: regcred imagePullPolicy: Always