Skip to content

Commit

Permalink
example config with vshnpostgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
tobru committed Dec 20, 2024
1 parent 20e1dec commit 7dd8192
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 81 deletions.
Original file line number Diff line number Diff line change
@@ -1,49 +1,19 @@
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"
password: "AGoodPassword"
email: "[email protected]"
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
Expand All @@ -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:
Expand Down
74 changes: 33 additions & 41 deletions docs/modules/ROOT/attachments/example-forgejo-helm-values.yaml
Original file line number Diff line number Diff line change
@@ -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: "[email protected]"
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
Expand All @@ -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:
Expand Down
41 changes: 41 additions & 0 deletions docs/modules/ROOT/pages/explanations/decisions/forgejo.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
----

0 comments on commit 7dd8192

Please sign in to comment.