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.

115 lines
2.6 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. # logger configuration
  75. log:
  76. prefix: '[GIN-VUE-ADMIN]'
  77. log-file: true
  78. stdout: 'DEBUG'
  79. file: 'DEBUG'
  80. # zap logger configuration
  81. zap:
  82. # 可使用 "debug", "info", "warn", "error", "dpanic", "panic", "fatal",
  83. level: 'debug'
  84. # console: 控制台, json: json格式输出
  85. format: 'console'
  86. prefix: '[GIN-VUE-ADMIN]'
  87. director: 'log'
  88. link_name: 'latest_log'
  89. show_line: true
  90. # LowercaseLevelEncoder:小写, LowercaseColorLevelEncoder:小写带颜色,CapitalLevelEncoder: 大写, CapitalColorLevelEncoder: 大写带颜色,
  91. encode_level: 'LowercaseColorLevelEncoder'
  92. stacktrace_key: 'stacktrace'
  93. log_in_console: true
  94. email:
  95. email_from: 'xxx@163.com'
  96. email_nick_name: 'test'
  97. email_secret: 'xxx'
  98. email_to: 'xxx@qq.com'
  99. email_host: 'smtp.163.com'
  100. email_port: 465
  101. email_isSSL: true