forgejo: Add configuration for crunchydata postgresql db

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2025-04-16 16:39:19 +01:00
parent fec5b5beb3
commit 0702e29cab
No known key found for this signature in database
GPG key ID: A5893AB6474AC37D
2 changed files with 11 additions and 1 deletions

View file

@ -1,6 +1,8 @@
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
annotations:
postgres-operator.crunchydata.com/autoCreateUserSchema: "true"
name: forgejo-ha
namespace: forgejo
spec:

View file

@ -514,7 +514,15 @@ gitea:
OFFLINE_MODE: false
## @param gitea.config.database Database configuration (only necessary with an [externally managed DB](https://code.forgejo.org/forgejo-helm/forgejo-helm#external-database)).
database: {}
database:
HOST: "{{ forgejo_database_host }}"
NAME: "{{ forgejo_database_name }}"
USER: "{{ forgejo_database_user }}"
PASSWD: "{{ forgejo_database_password }}"
SCHEMA: "{{ forgejo_database_schema }}"
SSL_MODE: "require"
DB_TYPE: "postgres"
## @param gitea.config.indexer Settings for what content is indexed and how
indexer: {}