| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- # zap logger configuration
- zap:
- level: 'info'
- prefix: '[MTP20_Access]'
- format: 'console'
- director: 'log'
- encode-level: 'LowercaseColorLevelEncoder'
- stacktrace-key: 'stacktrace'
- max-age: 30 # 默认日志留存默认以天为单位
- 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: {{redis_addr}}
- 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: {{quote_publish_addr}} # 行情发布服务地址
- # local configuration
- local:
- path: 'uploads/file' # 访问路径
- store-path: 'uploads/file' # 存储路径
- # oracle configuration
- oracle:
- driver: 'oci8'
- address: '{{db_addr}}'
- name: '{{db_name}}'
- port: '{{db_port}}'
- user: '{{db_user}}'
- pwd: '{{db_pwd}}'
- max-idle-conns: 10
- max-open-conns: 100
- # rabbitmq configuration
- rabbitmq:
- url: '{{rabbitmq_url}}'
- exchange: 'entry'
- # 爱签开放平台配置
- asign:
- url: '{{asign_url}}' # 测试环境 - https://prev.asign.cn/ 正式环境 - https://oapi.asign.cn/
- appId: '{{asign_appId}}'
- privateKey: '{{asign_privateKey}}'
- notifyUrl: '{{asign_notifyUrl}}'
- openApiUrl: '{{asign_openApiUrl}}'
- willFaceRedirectUrl: '{{asign_willFaceRedirectUrl}}' # 人脸认证结果回调通知URL,可拼接参数
- py: {{asign_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 # 布尔值
|