Move NODE_ENV to the configmap

This commit is contained in:
V-Paranoiaque
2025-09-21 15:15:58 +02:00
parent 4528be8cc6
commit f701574e67
3 changed files with 2 additions and 2 deletions

View File

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

View File

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

View File

@@ -95,6 +95,7 @@ serviceAccount:
gitea-mirror:
existingSecret: ""
nodeEnv: production
core:
databaseUrl: file:data/gitea-mirror.db
encryptionSecret: ""