# pingcat-apiserver config

# generic server config
server:
  middlewares: recovery,logger,nocache,secure,cors,requestid

# log
log:
  name: pingcat-bot # logger name. Default is empty string
  development: ${PINGCAT_LOG_DEVELOPMENT} # trace DPanicLevel if true. Default is false
  output-paths: ${PINGCAT_LOG_OUTPUTS} # multiple outputs supported with commas separated, file or stdout. Default is stdout
  format: ${PINGCAT_LOG_FORMAT} # console or json. Default is console
  enable-color: ${PINGCAT_LOG_ENABLE_COLOR} # color output if true. Default is false
  disable-caller: false # disable caller(file-name, func-name and line-number) if true. Default is false
  # completely disables automatic stacktrace capturing if true. Default is false. By default, stacktraces are captured for WarnLevel and above logs in development and ErrorLevel and above in production.
  disable-stacktrace: false
  # a list of paths to write internal logger errors(zap internal errors) to. Default is stderr.
  error-output-paths: ${PINGCAT_LOG_ERROR_OUTPUTS}
  specified-keys: requestID,username

#mysql
mysql:
  host: ${PINGCAT_MYSQL_HOST}
  username: ${PINGCAT_MYSQL_USERNAME}
  password: ${PINGCAT_MYSQL_PASSWORD}
  database: ${PINGCAT_MYSQL_DATABASE}
  max-idle-connections: 100
  max-open-connections: 100
  max-connection-life-time: 10s
  log-level: 4

# redis
redis:
  host: ${PINGCAT_REDIS_HOST}
  port: 6479

# lark app
lark:
  appId: ${PINGCAT_LARK_APP_ID}
  appSecret: ${PINGCAT_LARK_APP_SECRET}
  eventSecret: ${PINGCAT_LARK_EVENT_ENCRYPT_KEY}

# azure gpt
azure:
  gpt4Endpoint: ${PINGCAT_AZURE_GPT4_ENDPOINT}
  gpt4Key: ${PINGCAT_AZURE_GPT4_KEY}
  gpt4Version: ${PINGCAT_AZURE_GPT4_VERSION}
  gpt3Endpoint: ${PINGCAT_AZURE_GPT3_ENDPOINT}
  gpt3Key: ${PINGCAT_AZURE_GPT3_KEY}
  gpt3Version: ${PINGCAT_AZURE_GPT3_VERSION}

# azure gpt
openai:
  key: ${PINGCAT_OPENAI_KEY}
  orgId: ${PINGCAT_OPENAI_ORGID}

# authing
authing:
  appSecret: ${PCHUB_AUTHING_APP_SECRET}
  appId: 62da4455ba5d4d969de5c5d9
  appHost: https://pchub.authing.pingcap.net
