From f701574e675bc2f1ee479acf2c377a3a904f2b50 Mon Sep 17 00:00:00 2001 From: V-Paranoiaque Date: Sun, 21 Sep 2025 15:15:58 +0200 Subject: [PATCH] Move NODE_ENV to the configmap --- helm/gitea-mirror/templates/configmap.yaml | 1 + helm/gitea-mirror/templates/deployment.yaml | 2 -- helm/gitea-mirror/values.yaml | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/gitea-mirror/templates/configmap.yaml b/helm/gitea-mirror/templates/configmap.yaml index edc3bb8..a953c74 100644 --- a/helm/gitea-mirror/templates/configmap.yaml +++ b/helm/gitea-mirror/templates/configmap.yaml @@ -6,6 +6,7 @@ metadata: labels: {{- include "gitea-mirror.labels" . | nindent 4 }} data: + NODE_ENV: {{ $gm.nodeEnv }} # Core configuration DATABASE_URL: {{ $gm.core.databaseUrl }} BETTER_AUTH_SECRET: {{ $gm.core.be }} diff --git a/helm/gitea-mirror/templates/deployment.yaml b/helm/gitea-mirror/templates/deployment.yaml index 11cda3e..c99bd7a 100644 --- a/helm/gitea-mirror/templates/deployment.yaml +++ b/helm/gitea-mirror/templates/deployment.yaml @@ -62,8 +62,6 @@ spec: name: {{ include "gitea-mirror.fullname" . }} {{- end }} env: - - name: NODE_ENV - value: "production" - name: PORT value: "{{ .Values.deployment.port }}" {{- if .Values.deployment.env }} diff --git a/helm/gitea-mirror/values.yaml b/helm/gitea-mirror/values.yaml index d821d8d..d896b1e 100644 --- a/helm/gitea-mirror/values.yaml +++ b/helm/gitea-mirror/values.yaml @@ -95,6 +95,7 @@ serviceAccount: gitea-mirror: existingSecret: "" + nodeEnv: production core: databaseUrl: file:data/gitea-mirror.db encryptionSecret: ""