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.

117 lines
2.4 KiB

  1. #! /bin/bash
  2. rm -f ./config.yaml
  3. # 生成config.yaml文件, 用于docker-compose的使用
  4. touch ./config.yaml
  5. filename="./config.yaml"
  6. cat>"${filename}"<<EOF
  7. # Gin-Vue-Admin Global Configuration
  8. # jwt configuration
  9. jwt:
  10. signing-key: 'qmPlus'
  11. # zap logger configuration
  12. zap:
  13. level: 'info'
  14. format: 'console'
  15. prefix: '[GIN-VUE-ADMIN]'
  16. director: 'log'
  17. link-name: 'latest_log'
  18. show-line: true
  19. encode-level: 'LowercaseColorLevelEncoder'
  20. stacktrace-key: 'stacktrace'
  21. log-in-console: true
  22. # redis configuration
  23. redis:
  24. db: 0
  25. addr: '177.7.0.14:6379'
  26. password: ''
  27. # email configuration
  28. email:
  29. to: 'xxx@qq.com'
  30. port: 465
  31. from: 'xxx@163.com'
  32. host: 'smtp.163.com'
  33. is-ssl: true
  34. secret: 'xxx'
  35. nickname: 'test'
  36. # casbin configuration
  37. casbin:
  38. model-path: './resource/rbac_model.conf'
  39. # system configuration
  40. system:
  41. env: 'public' # Change to "develop" to skip authentication for development mode
  42. addr: 8888
  43. db-type: 'mysql'
  44. oss-type: 'local'
  45. config-env: 'GVA_CONFIG'
  46. need-init-data: true
  47. use-multipoint: false
  48. # captcha configuration
  49. captcha:
  50. key-long: 6
  51. img-width: 240
  52. img-height: 80
  53. # mysql connect configuration
  54. mysql:
  55. path: '177.7.0.13:3306'
  56. config: 'charset=utf8mb4&parseTime=True&loc=Local'
  57. db-name: 'qmPlus'
  58. username: 'root'
  59. password: 'Aa@6447985'
  60. max-idle-conns: 10
  61. max-open-conns: 10
  62. log-mode: false
  63. # sqlite connect configuration (sqlite需要gcc支持 windows用户需要自行安装gcc)
  64. sqlite:
  65. path: 'db.db'
  66. max-idle-conns: 10
  67. max-open-conns: 10
  68. logger: true
  69. # Sqlserver connect configuration
  70. sqlserver:
  71. path: 'localhost:9930'
  72. db-name: 'gorm'
  73. username: 'gorm'
  74. password: 'LoremIpsum86'
  75. max-idle-conns: 10
  76. max-open-conns: 10
  77. logger: true
  78. # Postgresql connect configuration
  79. postgresql:
  80. host: '127.0.0.1'
  81. port: '9920'
  82. config: 'sslmode=disable TimeZone=Asia/Shanghai'
  83. db-name: 'gorm'
  84. username: 'gorm'
  85. password: 'gorm'
  86. max-idle-conns: 10
  87. max-open-conns: 10
  88. prefer-simple-protocol: true
  89. logger: false
  90. # local configuration
  91. local:
  92. path: 'uploads/file'
  93. # qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址)
  94. qiniu:
  95. zone: 'ZoneHuadong'
  96. bucket: 'qm-plus-img'
  97. img-path: 'http://qmplusimg.henrongyi.top'
  98. use-https: false
  99. access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
  100. secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
  101. use-cdn-domains: false
  102. EOF