mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-07 12:06:46 +03:00
Move NODE_ENV to the configmap
This commit is contained in:
@@ -6,6 +6,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "gitea-mirror.labels" . | nindent 4 }}
|
{{- include "gitea-mirror.labels" . | nindent 4 }}
|
||||||
data:
|
data:
|
||||||
|
NODE_ENV: {{ $gm.nodeEnv }}
|
||||||
# Core configuration
|
# Core configuration
|
||||||
DATABASE_URL: {{ $gm.core.databaseUrl }}
|
DATABASE_URL: {{ $gm.core.databaseUrl }}
|
||||||
BETTER_AUTH_SECRET: {{ $gm.core.be }}
|
BETTER_AUTH_SECRET: {{ $gm.core.be }}
|
||||||
|
|||||||
@@ -62,8 +62,6 @@ spec:
|
|||||||
name: {{ include "gitea-mirror.fullname" . }}
|
name: {{ include "gitea-mirror.fullname" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: NODE_ENV
|
|
||||||
value: "production"
|
|
||||||
- name: PORT
|
- name: PORT
|
||||||
value: "{{ .Values.deployment.port }}"
|
value: "{{ .Values.deployment.port }}"
|
||||||
{{- if .Values.deployment.env }}
|
{{- if .Values.deployment.env }}
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ serviceAccount:
|
|||||||
|
|
||||||
gitea-mirror:
|
gitea-mirror:
|
||||||
existingSecret: ""
|
existingSecret: ""
|
||||||
|
nodeEnv: production
|
||||||
core:
|
core:
|
||||||
databaseUrl: file:data/gitea-mirror.db
|
databaseUrl: file:data/gitea-mirror.db
|
||||||
encryptionSecret: ""
|
encryptionSecret: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user