# zap logger configuration
zap:
  level: 'info'
  prefix: '[MTP20_Access]'
  format: 'console'
  director: 'log'
  encode-level: 'LowercaseColorLevelEncoder'
  stacktrace-key: 'stacktrace'
  max-age: 365 # 默认日志留存默认以天为单位
  show-line: true
  log-in-console: true

# jwt configuration
jwt:
  signing-key: 'IVThJraI1R52mE7b'
  expires-time: 604800
  buffer-time: 86400
  issuer: 'Muchinfo'

# redis configuration
redis:
  db: 0
  addr: '192.168.31.202:5007'
  password: ''

# system configuration
system:
  env: 'develop'  # "develop" & "public", Change to "develop" to skip authentication for development mode
  addr: 8888
  need-quote-publish: false # 是否需要连接行情发布服务
  quote-publish-addr: '192.168.31.202:5004' # 行情发布服务地址

# local configuration
local:
  path: 'uploads/file' # 访问路径
  store-path: 'uploads/file' # 存储路径

# oracle configuration
oracle:
  driver: 'oci8'
  address: '192.168.31.88'
  name: 'orcl'
  port: '1521'
  user: 'mtp2_test202'
  pwd: 'muchinfo'
  max-idle-conns: 10
  max-open-conns: 100

# rabbitmq configuration
rabbitmq:
  url: 'amqp://guest:guest@192.168.31.202:5020/test'
  exchange: 'entry'

# 爱签开放平台配置
asign:
  url: 'https://prev.asign.cn/' # 测试环境 - https://prev.asign.cn/  正式环境 - https://oapi.asign.cn/
  appId: '290912417' # 测试-290912417 正式-944849860
  privateKey: 'MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAkMD+72J6iAF0ZNV+3t628lsRHfJ80nKZWK5/C7Pg+AZmOIzJlwHsKhRzCvxoxqYHQprhiFzW9l73v9vD9l1JYwIDAQABAkBVijccr01JYdKuY5t9iI8D2NzcnZc1pZMI3NUmzT18Uyg7b9CUvGHlLeg/gdT4QtVd7wIzHYCY4letEcEMh54BAiEAwzNWusj5XiLmty7PI0Hbakx4HtcND1+P0UHLEWqWOuECIQC91zQuL7nStgGzT3HvaeBB5Ouapa39fHRm2nCjHaxwwwIgRR2XdvmUOj23XWMomr5F14SN/7V7fVcD0D8wjNElsmECIDYavV5kb7tj7/wgqkInlKhzC8rZaUsTS0F9BBkY/eptAiAQJ8Saz8YlMIESdHMxANGSog01fECbcZqLFMuNf8SorA=='
  notifyUrl: 'http://218.17.158.45:15105/api/Account/HandleASignCompleted' # 合同签署回调通知URL
  openApiUrl: 'http://192.168.31.202:5015/mtp2-onlineopen'
  willFaceRedirectUrl: 'http://218.17.158.45:15105/api/Account/HandleWillFace' # 人脸认证结果回调通知URL，可拼接参数
  py: 'py' # python 执行命令

# 跨域配置
# 需要配合 server/initialize/router.go#L32 使用
cors:
  mode: allow-all # 放行模式: allow-all, 放行全部; whitelist, 白名单模式, 来自白名单内域名的请求添加 cors 头; strict-whitelist 严格白名单模式, 白名单外的请求一律拒绝
  whitelist:
    - allow-origin: example1.com
      allow-headers: content-type
      allow-methods: GET, POST
      expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
      allow-credentials: true # 布尔值
    - allow-origin: example2.com
      allow-headers: content-type
      allow-methods: GET, POST
      expose-headers: Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
      allow-credentials: true # 布尔值