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.

88 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. expires-time: 604800
  12. buffer-time: 86400
  13. # zap logger configuration
  14. zap:
  15. level: 'info'
  16. format: 'console'
  17. prefix: '[GIN-VUE-ADMIN]'
  18. director: 'log'
  19. link-name: 'latest_log'
  20. show-line: true
  21. encode-level: 'LowercaseColorLevelEncoder'
  22. stacktrace-key: 'stacktrace'
  23. log-in-console: true
  24. # redis configuration
  25. redis:
  26. db: 0
  27. addr: '177.7.0.14:6379'
  28. password: ''
  29. # email configuration
  30. email:
  31. to: 'xxx@qq.com'
  32. port: 465
  33. from: 'xxx@163.com'
  34. host: 'smtp.163.com'
  35. is-ssl: true
  36. secret: 'xxx'
  37. nickname: 'test'
  38. # casbin configuration
  39. casbin:
  40. model-path: './resource/rbac_model.conf'
  41. # system configuration
  42. system:
  43. env: 'public' # Change to "develop" to skip authentication for development mode
  44. addr: 8888
  45. db-type: 'mysql'
  46. oss-type: 'local'
  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: ''
  56. config: ''
  57. db-name: ''
  58. username: ''
  59. password: ''
  60. max-idle-conns: 10
  61. max-open-conns: 100
  62. log-mode: false
  63. log-zap: ""
  64. # local configuration
  65. local:
  66. path: 'uploads/file'
  67. # qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址)
  68. qiniu:
  69. zone: 'ZoneHuadong'
  70. bucket: 'qm-plus-img'
  71. img-path: 'http://qmplusimg.henrongyi.top'
  72. use-https: false
  73. access-key: '25j8dYBZ2wuiy0yhwShytjZDTX662b8xiFguwxzZ'
  74. secret-key: 'pgdbqEsf7ooZh7W3xokP833h3dZ_VecFXPDeG5JY'
  75. use-cdn-domains: false
  76. EOF