global:
  imageRegistry: ""


ingress:
  enabled: true
  annotations:
    cert-manager.io/cluster-issuer: "root-ca-issuer"
    cert-manager.io/duration: 8760h
    cert-manager.io/renew-before: 720h
    konghq.com/protocols: https
    konghq.com/https-redirect-status-code: "301"

  hosts:
    - host: gitea-test.example.org
      paths:
        - path: /
          pathType: Prefix
  tls:
    - hosts:
        host: gitea-test.example.org
      secretName: gitea-tls

## pod 설정
replicaCount: 1
resources:
  requests:
    cpu: 100m
    memory: 300Mi
  limits:
    cpu: 300m
    memory: 500Mi

persistence:
  enabled: true
  storageClass: ""
  size: "10Gi"


## 같은 네임스페이스에 postgresql 배포 가정
gitea:
  admin:
    username: sudouser
    password: password
    email: "sudouser@cro.com"
  config:
    APP_NAME: paasup git
    RUN_MODE: prod
    server:
      ROOT_URL: https://gitea.example.org
    service:
      DEFAULT_ALLOW_CREATE_ORGANIZATION: true
    repository:
      DEFAULT_BRANCH: master

postgresql:
  enabled: true
  global:
    postgresql:
      postgresqlDatabase: gitea  # 데이터베이스 이름 설정
      postgresqlUsername: gitea  # 데이터베이스 사용자 이름 설정
      postgresqlPassword: gitea  # 데이터베이스 사용자 비밀번호 설정
  persistence:
    size: 5Gi
    # storageClass: ""           # 생성할 볼륨의 storageClass를 설정한다.
postgresql-ha:
  enabled: false
valkey:
  enabled: true
  primary:
    persistence:
      size: 8Gi
valkey-cluster:
  enabled: false