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.

108 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. # captcha configuration
  70. captcha:
  71. key-long: 6
  72. img-width: 240
  73. img-height: 80
  74. # zap logger configuration
  75. zap:
  76. # 可使用 "debug", "info", "warn", "error", "dpanic", "panic", "fatal",
  77. level: 'info'
  78. # console: 控制台, json: json格式输出
  79. format: 'console'
  80. prefix: '[GIN-VUE-ADMIN]'
  81. director: 'log'
  82. link-name: 'latest_log'
  83. show-line: true
  84. # LowercaseLevelEncoder:小写, LowercaseColorLevelEncoder:小写带颜色,CapitalLevelEncoder: 大写, CapitalColorLevelEncoder: 大写带颜色,
  85. encode-level: 'LowercaseColorLevelEncoder'
  86. stacktrace-key: 'stacktrace'
  87. log-in-console: true
  88. email:
  89. email-from: 'xxx@163.com'
  90. email-nickname: 'test'
  91. email-secret: 'xxx'
  92. email-to: 'xxx@qq.com'
  93. email-host: 'smtp.163.com'
  94. email-port: 465
  95. email-isSSL: true