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

144 lines
4.1 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:
2024-03-24 15:53:12 +00:00
- host: "${forgejo_domain}"
2024-01-23 19:12:00 +00:00
paths:
- path: /
pathType: Prefix
tls:
- secretName: forgejo-tls
hosts:
2024-03-24 15:53:12 +00:00
- "${forgejo_domain}"
2024-01-23 19:12:00 +00:00
gitea:
admin:
username: "forgejo"
email: "${admin_email}"
password: "${forgejo_admin_password}"
2024-01-23 19:12:00 +00:00
# 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-03-25 16:28:53 +00:00
APP_NAME: "Forging ${org_name}"
2024-01-23 19:12:00 +00:00
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"
2024-01-23 19:12:00 +00:00
MAX_CREATION_LIMIT: 99
project:
PROJECT_BOARD_BASIC_KANBAN_TYPE: "Done, Doing, Todo"
# PROJECT_BOARD_BUG_TRIAGE_TYPE: Needs Triage, High Priority, Low Priority, Closed
2024-01-23 19:12:00 +00:00
server:
LANDING_PAGE: login
PROTOCOL: "https"
# ROOT_URL: "https://${forgejo_domain}"
# DOMAIN:
2024-01-23 19:12:00 +00:00
openid:
ENABLE_OPENID_SIGNUP: true
service:
DISABLE_REGISTRATION: false
2024-03-25 16:28:53 +00:00
ENABLE_BASIC_AUTHENTICATION: false
2024-01-23 19:12:00 +00:00
ALLOW_ONLY_EXTERNAL_REGISTRATION: true
DEFAULT_USER_VISIBILITY: "limited"
DEFAULT_ORG_MEMBER_VISIBLE: true
# EMAIL_DOMAIN_ALLOWLIST
admin:
SEND_NOTIFICATION_EMAIL_ON_NEW_USER: true
mailer:
ENABLED: "${outgoing_mail_enabled}"
SMTP_ADDR: "${outgoing_mail_smtp_host}"
SMTP_PORT: "${outgoing_mail_smtp_port}"
USER: "${outgoing_mail_smtp_user}"
PASSWD: "${outgoing_mail_smtp_password}"
FROM: "${outgoing_mail_from_address}"
# SUBJECT_PREFIX
# forcessl: true
cors:
ENABLED: true
# SCHEME: "https"
ALLOW_DOMAIN: "files.ftt.gmbh"
ALLOW_CREDENTIALS: true
2024-04-03 09:09:20 +00:00
# log:
2024-03-25 16:28:53 +00:00
# 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
2024-03-12 11:16:48 +00:00
image:
tag: "11-debian-11"
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: "Cluster"
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"
replicaCount: 1
strategy:
type: 'RollingUpdate'
rollingUpdate:
maxSurge: '25%'
maxUnavailable: '25%'