You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
2.5 KiB

  1. # Gin-Vue-Admin Global Configuration
  2. # casbin configuration
  3. casbin:
  4. model-path: './resource/rbac_model.conf'
  5. # jwt configuration
  6. jwt:
  7. signing-key: 'qmPlus'
  8. # mysql connect configuration
  9. mysql:
  10. username: root
  11. password: 'Aa@6447985'
  12. path: '127.0.0.1:3306'
  13. db-name: 'qmPlus'
  14. config: 'charset=utf8mb4&parseTime=True&loc=Local'
  15. max-idle-conns: 10
  16. max-open-conns: 10
  17. log-mode: false
  18. # Postgresql connect configuration
  19. postgresql:
  20. username: 'gorm'
  21. password: 'gorm'
  22. db-name: 'gorm'
  23. port: '9920'
  24. config: 'sslmode=disable TimeZone=Asia/Shanghai'
  25. max-idle-conns: 10
  26. max-open-conns: 10
  27. logger: false
  28. prefer-simple-protocol: true
  29. # sqlite connect configuration
  30. # sqlite需要gcc支持 windows用户需要自行安装gcc
  31. sqlite:
  32. # path: 'file::memory:?cache=shared' # 内存模式
  33. path: 'db.db'
  34. max-idle-conns: 10
  35. max-open-conns: 10
  36. logger: true
  37. # Sqlserver connect configuration
  38. sqlserver:
  39. username: 'gorm'
  40. password: 'LoremIpsum86'
  41. db-name: 'gorm'
  42. path: 'localhost:9930'
  43. max-idle-conns: 10
  44. max-open-conns: 10
  45. logger: true
  46. # oss configuration
  47. # 切换本地与七牛云上传,分配头像和文件路径
  48. localupload:
  49. local: false
  50. file-path: uploads/file
  51. # 请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址
  52. qiniu:
  53. access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
  54. secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
  55. bucket: 'qm-plus-img'
  56. img-path: 'http://qmplusimg.henrongyi.top'
  57. # redis configuration
  58. redis:
  59. addr: '127.0.0.1:6379'
  60. password: ''
  61. db: 0
  62. # system configuration
  63. system:
  64. use-multipoint: false
  65. env: 'public' # Change to "develop" to skip authentication for development mode
  66. addr: 8888
  67. db-type: "mysql" # support mysql/postgresql/sqlite/sqlserver
  68. need-init-data: false
  69. error-to-email: false
  70. # captcha configuration
  71. captcha:
  72. key-long: 6
  73. img-width: 240
  74. img-height: 80
  75. # zap logger configuration
  76. zap:
  77. # 可使用 "debug", "info", "warn", "error", "dpanic", "panic", "fatal",
  78. level: 'info'
  79. # console: 控制台, json: json格式输出
  80. format: 'console'
  81. prefix: '[GIN-VUE-ADMIN]'
  82. director: 'log'
  83. link-name: 'latest_log'
  84. show-line: true
  85. # LowercaseLevelEncoder:小写, LowercaseColorLevelEncoder:小写带颜色,CapitalLevelEncoder: 大写, CapitalColorLevelEncoder: 大写带颜色,
  86. encode-level: 'LowercaseColorLevelEncoder'
  87. stacktrace-key: 'stacktrace'
  88. log-in-console: true
  89. email:
  90. email-from: 'xxx@163.com'
  91. email-nickname: 'test'
  92. email-secret: 'xxx'
  93. email-to: 'xxx@qq.com'
  94. email-host: 'smtp.163.com'
  95. email-port: 465
  96. email-is-ssl: true