# core-server configuration example

log:
  level: 0
  isJSON: false

secret:
  rootConfigSecretName: ""
  awsASM:
    region: "us-west-2"

database:
  host: "127.0.0.1"
  port: 3306
  user: "core_server"
  password: "REPLACE_ME"
  database: "core_server"
  params:
    parseTime: "true"
    charset: "utf8mb4"
  logLevel: 4
  logSlowThreshold: "200ms"

asset:
  bucketName: "REPLACE_ME"

clients:
  lark:
    larkBaseURL: "pingcap.feishu.cn"
    appCode: "REPLACE_ME"
    appSecret: "REPLACE_ME"
    encryptKey: "REPLACE_ME"
    verificationToken: "REPLACE_ME"
  gcp:
    cred: 'REPLACE_ME'

services:
  calendar:
    maxQueryDays: 366
    fileCleanup:
      cronDisable: false
      cronSpec: "0 3 * * *"
      minAge: "24h"
  auth:
    # Single-provider compatibility fields. Prefer providers for new deployments.
    authDomain: "REPLACE_ME"
    authAudience: "REPLACE_ME"
    userEmailClaim: "email"
    providers:
      - name: "default"
        authDomain: "REPLACE_ME"
        authAudience: "REPLACE_ME"
        userEmailClaim: "email"
  user:
    expireAPITokenInterval: "1h"
    syncUser:
      cronDisable: true
      cronSpec: "0 8 * * *"
    syncGroup:
      cronDisable: true
      cronSpec: "30 8 * * *"
  iam:
    syncRoleBindingsForGroup:
      cronDisable: true
      cronSpec: "0 0 * * *"
      larkDepartmentToRoles: {}

rpcServer:
  address: ":9090"

rpcGatewayServer:
  address: ":8080"
  rpcAddress: ":9090"
