config.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. database:
  2. # 数据库类型
  3. dialect: mysql
  4. # host地址
  5. host: 127.0.0.1
  6. # 端口
  7. port: 3306
  8. # 数据库名称
  9. db: panel_development
  10. # 数据库用户名
  11. userName: root
  12. # 数据库密码
  13. password: 123456
  14. # 其他配置参数
  15. otherParams: charset=utf8mb4&parseTime=True&loc=Local
  16. # 最大空闲连接数
  17. maxIdleConn: 20
  18. # 最大连接数
  19. maxOpenConn: 200
  20. # 连接超时关闭时间,单位:秒
  21. connMaxLifetime: 60
  22. jwt:
  23. secret: "xxxxx"
  24. refresh_expire: 168
  25. Issuer: "lc_oauth"
  26. # 服务相关配置
  27. server:
  28. # 启动模式 debug、release
  29. mode: debug
  30. # http服务信息
  31. insecureServingInfo:
  32. # 监听端口
  33. port: ":8080"
  34. subMail:
  35. appid: "97173"
  36. signature: "f639a60e41ee0554921d89884f5ff87e"
  37. redis:
  38. addr: "192.168.0.100:6379"
  39. password: ""
  40. db: 0
  41. nats:
  42. url: "nats://127.0.0.0:4222"
  43. qiniu:
  44. endpoint: "https://bzdcdn.baozhida.cn/"
  45. accessKeyID: "-8ezB_d-8-eUFTMvhOGbGzgeQRPeKQnaQ3DBcUxo"
  46. accessKeySecret: "KFhkYxTAJ2ZPN3ZS3euTsfWk8-C92rKgkhAMkDRN"
  47. bucketName: "bzdcdn"
  48. swag:
  49. # 将环境变量 NAME_OF_ENV_VARIABLE设置为任意值,则 /swagger/*any 返回404响应
  50. enable: "NAME_OF_ENV_VARIABLE"