Name: haixun-backend
Host: 0.0.0.0
Port: 8890
Timeout: 120000

Mongo:
  URI: ${HAIXUN_MONGO_URI}
  Database: ${HAIXUN_MONGO_DB}
  TimeoutSeconds: 10

Redis:
  Addr: ${HAIXUN_REDIS_ADDR}
  Password: ${HAIXUN_REDIS_PASSWORD}
  DB: 0

Auth:
  AccessSecret: ${HAIXUN_JWT_ACCESS_SECRET}
  RefreshSecret: ${HAIXUN_JWT_REFRESH_SECRET}
  AccessExpireSeconds: 900
  RefreshExpireSeconds: 2592000
  DevHeaderFallback: false

Secrets:
  EncryptionKey: ${HAIXUN_SECRETS_KEY}

InternalWorker:
  Secret: ${HAIXUN_WORKER_SECRET}

JobWorker:
  Enabled: false
  WorkerType: disabled

JobScheduler:
  Enabled: false
  IntervalSeconds: 60

JobReaper:
  Enabled: false
  IntervalSeconds: 30

ThreadsOAuth:
  AppID: "${THREADS_APP_ID}"
  AppSecret: "${THREADS_APP_SECRET}"
  RedirectURI: "${THREADS_REDIRECT_URI}"
  SuccessRedirect: "${THREADS_OAUTH_SUCCESS_REDIRECT}"

ThreadsTokenRefresh:
  Enabled: false
  IntervalSeconds: 3600
  LeadDays: 7

ThreadsPublishQueue:
  Enabled: false
  IntervalSeconds: 60
  BatchSize: 20
