diff --git a/docs/modules/ROOT/attachments/example-forgejo-helm-values-codey.yaml b/docs/modules/ROOT/attachments/example-forgejo-helm-values-codey.yaml index 8f7bc74..b6b5e9f 100644 --- a/docs/modules/ROOT/attachments/example-forgejo-helm-values-codey.yaml +++ b/docs/modules/ROOT/attachments/example-forgejo-helm-values-codey.yaml @@ -1,37 +1,3 @@ -global: - compatibility: - openshift: - adaptSecurityContext: force - -ingress: - enabled: true - annotations: - cert-manager.io/cluster-issuer: letsencrypt-production - tls: - - hosts: - - poc.codey2.ch - secretName: ingress-cert - hosts: - - host: poc.codey.ch - paths: - - path: / - pathType: Prefix - -redis-cluster: - enabled: false -redis: - enabled: false -postgresql: - enabled: false -postgresql-ha: - enabled: false - -persistence: - enabled: true - -strategy: - type: "Recreate" - gitea: admin: username: "TheAdminUser" @@ -39,11 +5,15 @@ gitea: email: "root@admin.ch" config: APP_NAME: "Codey PoC" + database: + PATH: /data/gitea.db + DB_TYPE: sqlite3 + SQLITE_JOURNAL_MODE: wal log: LEVEL: "info" server: - ROOT_URL: https://poc.codey.ch - DOMAIN: poc.codey.ch + ROOT_URL: https://myforgejo.example.com + DOMAIN: myforgejo.example.com DISABLE_SSH: true LFS_START_SERVER: true OFFLINE_MODE: true @@ -63,10 +33,6 @@ gitea: ENABLED: true mailer: ENABLED: false - database: - PATH: /data/gitea.db - DB_TYPE: sqlite3 - SQLITE_JOURNAL_MODE: wal session: PROVIDER: db cache: diff --git a/docs/modules/ROOT/attachments/example-forgejo-helm-values.yaml b/docs/modules/ROOT/attachments/example-forgejo-helm-values.yaml index c797a7a..996ecbe 100644 --- a/docs/modules/ROOT/attachments/example-forgejo-helm-values.yaml +++ b/docs/modules/ROOT/attachments/example-forgejo-helm-values.yaml @@ -1,49 +1,45 @@ -global: - compatibility: - openshift: - adaptSecurityContext: force - -ingress: - enabled: true - annotations: - cert-manager.io/cluster-issuer: letsencrypt-production - tls: - - hosts: - - poc.codey.ch - secretName: ingress-cert - hosts: - - host: poc.codey.ch - paths: - - path: / - pathType: Prefix - -redis-cluster: - enabled: false -redis: - enabled: false -postgresql: - enabled: false -postgresql-ha: - enabled: false - -persistence: - enabled: true - -strategy: - type: "Recreate" - gitea: admin: username: "TheAdminUser" password: "AGoodPassword" email: "root@admin.ch" + additionalConfigFromEnvs: + - name: FORGEJO__DATABASE__USER + valueFrom: + secretKeyRef: + name: postgres-creds + key: POSTGRESQL_USER + - name: FORGEJO__DATABASE__PASSWD + valueFrom: + secretKeyRef: + name: postgres-creds + key: POSTGRESQL_PASSWORD + - name: FORGEJO__DATABASE__NAME + valueFrom: + secretKeyRef: + name: postgres-creds + key: POSTGRESQL_DB + - name: POSTGRESQL_HOST + valueFrom: + secretKeyRef: + name: postgres-creds + key: POSTGRESQL_HOST + - name: POSTGRESQL_PORT + valueFrom: + secretKeyRef: + name: postgres-creds + key: POSTGRESQL_PORT + - name: FORGEJO__DATABASE__HOST + value: "$(POSTGRESQL_HOST):$(POSTGRESQL_PORT)" config: - APP_NAME: "Codey PoC" + database: + DB_TYPE: postgres + SSL_MODE: require log: LEVEL: "info" server: - ROOT_URL: https://poc.codey.ch - DOMAIN: poc.codey.ch + ROOT_URL: https://myforgejo.example.com + DOMAIN: myforgejo.example.com DISABLE_SSH: true LFS_START_SERVER: true OFFLINE_MODE: true @@ -63,10 +59,6 @@ gitea: ENABLED: true mailer: ENABLED: false - database: - PATH: /data/gitea.db - DB_TYPE: sqlite3 - SQLITE_JOURNAL_MODE: wal session: PROVIDER: db cache: diff --git a/docs/modules/ROOT/pages/explanations/decisions/forgejo.adoc b/docs/modules/ROOT/pages/explanations/decisions/forgejo.adoc index 5b6ba14..dfda711 100644 --- a/docs/modules/ROOT/pages/explanations/decisions/forgejo.adoc +++ b/docs/modules/ROOT/pages/explanations/decisions/forgejo.adoc @@ -303,3 +303,44 @@ include::attachment$example-forgejo-helm-values-codey.yaml[] ---- Download: xref:attachment$example-forgejo-helm-values-codey.yaml[example-forgejo-helm-values-codey.yaml] + +=== Common + +Common Helm values, applicable to both deployment methods. + +[source,yaml] +---- +global: + compatibility: + openshift: + adaptSecurityContext: force + +ingress: + enabled: true + annotations: + cert-manager.io/cluster-issuer: letsencrypt-production + tls: + - hosts: + - myforgejo.example.com + secretName: ingress-cert + hosts: + - host: myforgejo.example.com + paths: + - path: / + pathType: Prefix + +redis-cluster: + enabled: false +redis: + enabled: false +postgresql: + enabled: false +postgresql-ha: + enabled: false + +persistence: + enabled: true + +strategy: + type: "Recreate" +---- \ No newline at end of file