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.

107 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. avatar-path: uploads/avatar
  51. file-path: uploads/file
  52. # 请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址
  53. qiniu:
  54. access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
  55. secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
  56. bucket: 'qm-plus-img'
  57. img-path: 'http://qmplusimg.henrongyi.top'
  58. # redis configuration
  59. redis:
  60. addr: '127.0.0.1:6379'
  61. password: ''
  62. db: 0
  63. # system configuration
  64. system:
  65. use-multipoint: false
  66. env: 'public' # Change to "develop" to skip authentication for development mode
  67. addr: 8888
  68. db-type: "mysql" # support mysql/postgresql/sqlite/sqlserver
  69. need-init-data: false
  70. # captcha configuration
  71. captcha:
  72. key-long: 6
  73. img-width: 240
  74. img-height: 80
  75. # logger configuration
  76. log:
  77. prefix: '[GIN-VUE-ADMIN]'
  78. log-file: true
  79. stdout: 'DEBUG'
  80. file: 'DEBUG'
  81. # zap logger configuration
  82. zap:
  83. # 可使用 "debug", "info", "warn", "error", "dpanic", "panic", "fatal",
  84. level: 'debug'
  85. # console: 控制台, json: json格式输出
  86. format: 'console'
  87. prefix: '[GIN-VUE-ADMIN]'
  88. director: 'log'
  89. link_name: 'latest_log'
  90. show_line: true
  91. # LowercaseLevelEncoder:小写, LowercaseColorLevelEncoder:小写带颜色,CapitalLevelEncoder: 大写, CapitalColorLevelEncoder: 大写带颜色,
  92. encode_level: 'LowercaseColorLevelEncoder'
  93. stacktrace_key: 'stacktrace'
  94. log_in_console: true