image:
  repository: tccr.io/truecharts/gotify-server
  pullPolicy: IfNotPresent
  tag: v2.1.4@sha256:3f568cbc18808a8d138b07073233411a1077676e28a468b7e345fffae639fa32

secretEnv:
  user: "admin"
  pass: "admin"

env:
  GOTIFY_SERVER_PORT: 8080
  GOTIFY_SERVER_KEEPALIVEPERIODSECONDS: 0
  GOTIFY_SERVER_LISTENADDR: ""
  GOTIFY_SERVER_SSL_ENABLED: false
  # lists are a little weird but do-able (:
  # GOTIFY_SERVER_SSL_LETSENCRYPT_HOSTS: "- mydomain.tld\n- myotherdomain.tld"
  GOTIFY_SERVER_RESPONSEHEADERS: "X-Custom-Header: \"custom value\""
  # GOTIFY_SERVER_CORS_ALLOWORIGINS: "- \".+.example.com\"\n- \"otherdomain.com\""
  # GOTIFY_SERVER_CORS_ALLOWMETHODS: "- \"GET\"\n- \"POST\""
  # GOTIFY_SERVER_CORS_ALLOWHEADERS: "- \"Authorization\"\n- \"content-type\""
  # GOTIFY_SERVER_STREAM_ALLOWEDORIGINS: "- \".+.example.com\"\n- \"otherdomain.com\""
  GOTIFY_SERVER_STREAM_PINGPERIODSECONDS: 45
  GOTIFY_PASSSTRENGTH: 10
  GOTIFY_UPLOADEDIMAGESDIR: "data/images"
  GOTIFY_PLUGINSDIR: "data/plugins"

envFrom:
  - configMapRef:
      name: gotifyenv

service:
  main:
    ports:
      main:
        port: 10084
        targetPort: 8080

persistence:
  data:
    enabled: true
    mountPath: "/app/data"

postgresql:
  enabled: true
  existingSecret: "dbcreds"
  postgresqlUsername: gotify
  postgresqlDatabase: gotify
