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.

85 lines
1.7 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. use-multipoint: false
  46. # captcha configuration
  47. captcha:
  48. key-long: 6
  49. img-width: 240
  50. img-height: 80
  51. # mysql connect configuration
  52. mysql:
  53. path: '177.7.0.13:3306'
  54. config: 'charset=utf8mb4&parseTime=True&loc=Local'
  55. db-name: 'qmPlus'
  56. username: 'root'
  57. password: 'Aa@6447985'
  58. max-idle-conns: 10
  59. max-open-conns: 10
  60. log-mode: false
  61. # local configuration
  62. local:
  63. path: 'uploads/file'
  64. # qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址)
  65. qiniu:
  66. zone: 'ZoneHuadong'
  67. bucket: 'qm-plus-img'
  68. img-path: 'http://qmplusimg.henrongyi.top'
  69. use-https: false
  70. access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
  71. secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
  72. use-cdn-domains: false
  73. EOF