config.docker.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # github.com/flipped-aurora/gin-vue-admin/server Global Configuration
  2. # jwt configuration
  3. jwt:
  4. signing-key: 'qmPlus'
  5. expires-time: 604800
  6. buffer-time: 86400
  7. # zap logger configuration
  8. zap:
  9. level: 'info'
  10. format: 'console'
  11. prefix: '[github.com/flipped-aurora/gin-vue-admin/server]'
  12. director: 'log'
  13. link-name: 'latest_log'
  14. show-line: true
  15. encode-level: 'LowercaseColorLevelEncoder'
  16. stacktrace-key: 'stacktrace'
  17. log-in-console: true
  18. # redis configuration
  19. redis:
  20. db: 0
  21. addr: '177.7.0.14:6379'
  22. password: ''
  23. # email configuration
  24. email:
  25. to: '[email protected]'
  26. port: 465
  27. from: '[email protected]'
  28. host: 'smtp.163.com'
  29. is-ssl: true
  30. secret: 'xxx'
  31. nickname: 'test'
  32. # casbin configuration
  33. casbin:
  34. model-path: './resource/rbac_model.conf'
  35. # system configuration
  36. system:
  37. env: 'public' # Change to "develop" to skip authentication for development mode
  38. addr: 8888
  39. db-type: 'mysql'
  40. oss-type: 'local' # 控制oss选择走本期还是 七牛等其他仓 自行增加其他oss仓可以在 server/utils/upload/upload.go 中 NewOss函数配置
  41. use-multipoint: false
  42. # captcha configuration
  43. captcha:
  44. key-long: 6
  45. img-width: 240
  46. img-height: 80
  47. # mysql connect configuration
  48. mysql:
  49. path: ''
  50. config: ''
  51. db-name: ''
  52. username: ''
  53. password: ''
  54. max-idle-conns: 10
  55. max-open-conns: 100
  56. log-mode: ""
  57. log-zap: false
  58. # local configuration
  59. local:
  60. path: 'uploads/file'
  61. # autocode configuration
  62. autocode:
  63. transfer-restart: true
  64. root: ""
  65. server: /server
  66. server-api: /api/v1
  67. server-initialize: /initialize
  68. server-model: /model
  69. server-request: /model/request/
  70. server-router: /router
  71. server-service: /service
  72. web: /web/src
  73. web-api: /api
  74. web-flow: /view
  75. web-form: /view
  76. web-table: /view
  77. # qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址)
  78. qiniu:
  79. zone: 'ZoneHuaDong'
  80. bucket: ''
  81. img-path: ''
  82. use-https: false
  83. access-key: ''
  84. secret-key: ''
  85. use-cdn-domains: false
  86. # aliyun oss configuration
  87. aliyun-oss:
  88. endpoint: 'yourEndpoint'
  89. access-key-id: 'yourAccessKeyId'
  90. access-key-secret: 'yourAccessKeySecret'
  91. bucket-name: 'yourBucketName'
  92. bucket-url: 'yourBucketUrl'
  93. # tencent cos configuration
  94. tencent-cos:
  95. bucket: 'xxxxx-10005608'
  96. region: 'ap-shanghai'
  97. secret-id: 'xxxxxxxx'
  98. secret-key: 'xxxxxxxx'
  99. base-url: 'https://gin.vue.admin'
  100. path-prefix: 'github.com/flipped-aurora/gin-vue-admin/server'
  101. # excel configuration
  102. excel:
  103. dir: './resource/excel/'
  104. # timer task db clear table
  105. Timer:
  106. start: true
  107. spec: "@daily" # 定时任务详细配置参考 https://pkg.go.dev/github.com/robfig/cron/v3
  108. detail: [
  109. # tableName: 需要清理的表名
  110. # compareField: 需要比较时间的字段
  111. # interval: 时间间隔, 具体配置详看 time.ParseDuration() 中字符串表示 且不能为负数
  112. # 2160h = 24 * 30 * 3 -> 三个月
  113. { tableName: "sys_operation_records" , compareField: "created_at", interval: "2160h" },
  114. #{ tableName: "log2" , compareField: "created_at", interval: "2160h" }
  115. ]