fix(forgejo): Use secrets for DB

This commit is contained in:
2026-01-09 14:28:16 +01:00
parent 40beab6e4f
commit 685328685b
+29 -6
View File
@@ -15,12 +15,12 @@ resources:
gitea:
config:
database:
DB_TYPE: postgres
HOST: forgejo-db-rw:5432
NAME: app
USER: app
SCHEMA: public
# database:
# DB_TYPE: postgres
# HOST: forgejo-db-rw:5432
# NAME: app
# USER: app
# SCHEMA: public
cache:
ENABLED: true
ADAPTER: redis
@@ -38,6 +38,29 @@ gitea:
server:
DOMAIN: git.svc.hel1.obx
ROOT_URL: https://git.svc.hel1.obx
additionalConfigFromEnvs:
- name: FORGEJO__DATABASE__PASSWD
valueFrom:
secretKeyRef:
name: forgejo-db-app
key: password
- name: FORGEJO__DATABASE__NAME
valueFrom:
secretKeyRef:
name: forgejo-db-app
key: dbname
- name: FORGEJO__DATABASE__USER
valueFrom:
secretKeyRef:
name: forgejo-db-app
key: user
- name: FORGEJO__DATABASE__HOST
valueFrom:
secretKeyRef:
name: forgejo-db-app
key: host
- name: FORGEJO__DATABASE__DB_TYPE
value: postgres
ingress:
enabled: true