stackspout/apps/forge/forgejo/forgejo-values-configmap.yaml

110 lines
3.0 KiB
YAML
Raw Normal View History

2024-01-23 19:12:00 +00:00
apiVersion: v1
kind: ConfigMap
metadata:
name: stackspin-forgejo-values
namespace: stackspout
data:
values.yaml: |
ingress:
enabled: true
annotations:
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
hosts:
- host: "forge.${domain}"
paths:
- path: /
pathType: Prefix
tls:
- secretName: forgejo-tls
hosts:
- "forge.${domain}"
gitea:
admin:
username: "forgejo"
email: "${admin_email}"
password: "${password}"
# https://codeberg.org/forgejo-contrib/forgejo-helm#oauth2-settings
oauth:
- name: Stackspin
provider: "openidConnect"
key: "${client_id}"
secret: "${client_secret}"
2024-02-09 08:41:29 +00:00
autoDiscoverUrl: "https://${hydra_domain}/.well-known/openid-configuration"
iconUrl: "https://${dashboard_domain}/favicon-32x32.png"
2024-01-23 19:12:00 +00:00
# https://forgejo.org/docs/latest/admin/config-cheat-sheet/
config:
database:
DB_TYPE: postgres
session:
PROVIDER: db
cache:
ADAPTER: memory
queue:
TYPE: level
indexer:
ISSUE_INDEXER_TYPE: bleve
REPO_INDEXER_ENABLED: true
2024-01-23 19:12:00 +00:00
APP_NAME: "Forge for ${company_name}"
repository:
DEFAULT_PUSH_CREATE_PRIVATE: false
ENABLE_PUSH_CREATE_USER: true
ENABLE_PUSH_CREATE_ORG: true
DEFAULT_REPO_UNITS: [repo.code,repo.releases,repo.issues,repo.pulls]
MAX_CREATION_LIMIT: 99
server:
ROOT_URL: "https://forge.${domain}"
LANDING_PAGE: login
openid:
ENABLE_OPENID_SIGNUP: true
service:
DISABLE_REGISTRATION: false
ALLOW_ONLY_EXTERNAL_REGISTRATION: true
log:
LEVEL: "Debug"
2024-02-09 08:41:29 +00:00
podAnnotations:
backup.velero.io/backup-volumes: "data"
2024-01-23 19:12:00 +00:00
persistence:
2024-02-12 10:16:26 +00:00
enabled: true
mount: true
create: false
2024-02-09 14:33:58 +00:00
claimName: forgejo-data
2024-02-09 08:41:29 +00:00
labels:
stackspin.net/backupSet: "forgejo"
deployment:
labels:
stackspin.net/backupSet: "forgejo"
podLabels:
stackspin.net/backupSet: "forgejo"
2024-02-09 10:07:30 +00:00
redis-cluster:
enabled: false
postgresql-ha:
enabled: false
2024-01-23 19:12:00 +00:00
postgresql:
2024-02-09 08:41:29 +00:00
enabled: true
commonLabels:
stackspin.net/backupSet: "forgejo"
2024-02-20 11:48:17 +00:00
global:
postgresql:
auth:
database: gitea
username: gitea
password: gitea # "${postgresql_password}"
postgresPassword: "${postgresql_admin_password}"
2024-02-09 08:41:29 +00:00
primary:
podAnnotations:
backup.velero.io/backup-volumes: "data"
persistence:
2024-02-09 13:05:00 +00:00
existingClaim: forgejo-postgres
2024-02-09 10:07:30 +00:00
2024-01-23 19:12:00 +00:00
service:
ssh:
type: LoadBalancer
hostPort: 22
externalTrafficPolicy: "Local"
2024-02-18 09:09:41 +00:00
loadBalancerIP: "${ip_address}"
2024-01-23 19:12:00 +00:00
annotations:
metallb.universe.tf/allow-shared-ip: "share-ipv4"