image:
  repository: tccr.io/truecharts/firefox-syncserver
  pullPolicy: IfNotPresent
  # Overrides the image tag whose default is the chart appVersion.
  tag: v1.8.0@sha256:d0fbf65c8c7a99ad4ba7ffcfdad2e7b2555e0d829867c21cefc9314ace94f747

secretEnv:
  FF_SYNCSERVER_SECRET: "changeme"

securityContext:
  readOnlyRootFilesystem: false
  allowPrivilegeEscalation: true
  runAsNonRoot: false

podSecurityContext:
  runAsUser: 0
  runAsGroup: 0

env:
  FF_SYNCSERVER_PUBLIC_URL: "firefox-syncserver.192.168.1.189.nip.io"
  FF_SYNCSERVER_FORCE_WSGI_ENVIRON: true
  FF_SYNCSERVER_ACCESSLOG: false
  FF_SYNCSERVER_LOGLEVEL: "info"
  FF_SYNCSERVER_ALLOW_NEW_USERS: true
  FF_SYNCSERVER_FORWARDED_ALLOW_IPS: "*"
  FF_SYNCSERVER_SQLURI:
    secretKeyRef:
      name: dbcreds
      key: url

service:
  main:
    ports:
      main:
        port: 10051
        targetPort: 5000
persistence:
  config:
    enabled: true
    mountPath: "/config"
# Enabled postgres
postgresql:
  enabled: true
  existingSecret: "dbcreds"
  postgresqlUsername: firefox-syncserver
  postgresqlDatabase: firefox-syncserver
