1- aliyun-oss :
2- endpoint : yourEndpoint
3- access-key-id : yourAccessKeyId
4- access-key-secret : yourAccessKeySecret
5- bucket-name : yourBucketName
6- bucket-url : yourBucketUrl
1+ # Gin-Vue-Admin Global Configuration
2+
3+ # jwt configuration
4+ jwt :
5+ signing-key : ' qmPlus'
6+ expires-time : 604800
7+ buffer-time : 86400
8+
9+ # zap logger configuration
10+ zap :
11+ level : ' info'
12+ format : ' console'
13+ prefix : ' [GIN-VUE-ADMIN]'
14+ director : ' log'
15+ link-name : ' latest_log'
16+ show-line : true
17+ encode-level : ' LowercaseColorLevelEncoder'
18+ stacktrace-key : ' stacktrace'
19+ log-in-console : true
20+
21+ # redis configuration
22+ redis :
23+ db : 0
24+ addr : ' 127.0.0.1:6379'
25+ password : ' '
26+
27+ # email configuration
28+ email :
29+ 30+ port : 465
31+ 32+ host : ' smtp.163.com'
33+ is-ssl : true
34+ secret : ' xxx'
35+ nickname : ' test'
36+
37+ # casbin configuration
38+ casbin :
39+ model-path : ' ./resource/rbac_model.conf'
40+
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' # 控制oss选择走本期还是 七牛等其他仓 自行增加其他oss仓可以在 server/utils/upload/upload.go 中 NewOss函数配置
47+ use-multipoint : false
48+
49+ # captcha configuration
50+ captcha :
51+ key-long : 6
52+ img-width : 240
53+ img-height : 80
54+
55+ # mysql connect configuration
56+ # 未初始化之前请勿手动修改数据库信息!!!如果一定要手动初始化请看(https://www.gin-vue-admin.com/docs/first)
57+ mysql :
58+ path : ' '
59+ config : ' '
60+ db-name : ' '
61+ username : ' '
62+ password : ' '
63+ max-idle-conns : 10
64+ max-open-conns : 100
65+ log-mode : false
66+ log-zap : " "
67+
68+ # local configuration
69+ local :
70+ path : ' uploads/file'
71+
72+ # autocode configuration
773autocode :
874 transfer-restart : true
9- root : G:\QMPlus
75+ root : " "
1076 server : /server
1177 server-api : /api/v1
1278 server-initialize : /initialize
@@ -16,80 +82,52 @@ autocode:
1682 server-service : /service
1783 web : /web/src
1884 web-api : /api
85+ web-flow : /view
1986 web-form : /view
2087 web-table : /view
21- web-flow : /view
22- captcha :
23- key-long : 6
24- img-width : 240
25- img-height : 80
26- casbin :
27- model-path : ./resource/rbac_model.conf
28- email :
29- 30- port : 465
31- 32- host : smtp.163.com
33- is-ssl : true
34- secret : xxx
35- nickname : test
36- excel :
37- dir : ./resource/excel/
38- jwt :
39- signing-key : qmPlus
40- expires-time : 604800
41- buffer-time : 86400
42- local :
43- path : uploads/file
44- mysql :
45- path : 127.0.0.1:3306
46- config : charset=utf8mb4&parseTime=True&loc=Local
47- db-name : gva
48- username : root
49- password : Aa@6447985
50- max-idle-conns : 0
51- max-open-conns : 0
52- log-mode : false
53- log-zap : " "
88+
89+ # qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址)
5490qiniu :
55- zone : ZoneHuaDong
56- bucket : " "
57- img-path : " "
91+ zone : ' ZoneHuaDong'
92+ bucket : ' '
93+ img-path : ' '
5894 use-https : false
59- access-key : " "
60- secret-key : " "
95+ access-key : ' '
96+ secret-key : ' '
6197 use-cdn-domains : false
62- redis :
63- db : 0
64- addr : 127.0.0.1:6379
65- password : " "
66- system :
67- env : public
68- addr : 8888
69- db-type : mysql
70- oss-type : local
71- use-multipoint : false
98+
99+
100+ # aliyun oss configuration
101+ aliyun-oss :
102+ endpoint : ' yourEndpoint'
103+ access-key-id : ' yourAccessKeyId'
104+ access-key-secret : ' yourAccessKeySecret'
105+ bucket-name : ' yourBucketName'
106+ bucket-url : ' yourBucketUrl'
107+
108+ # tencent cos configuration
72109tencent-cos :
73- bucket : xxxxx-10005608
74- region : ap-shanghai
75- secret-id : xxxxxxxx
76- secret-key : xxxxxxxx
77- base-url : https://gin.vue.admin
78- path-prefix : gin-vue-admin
79- timer :
110+ bucket : ' xxxxx-10005608'
111+ region : ' ap-shanghai'
112+ secret-id : ' xxxxxxxx'
113+ secret-key : ' xxxxxxxx'
114+ base-url : ' https://gin.vue.admin'
115+ path-prefix : ' gin-vue-admin'
116+
117+ # excel configuration
118+ excel :
119+ dir : ' ./resource/excel/'
120+
121+
122+ # timer task db clear table
123+ Timer :
80124 start : true
81- spec : ' @daily'
82- detail :
83- - tableName : sys_operation_records
84- compareField : created_at
85- interval : 2160h
86- zap :
87- level : info
88- format : console
89- prefix : ' [GIN-VUE-ADMIN]'
90- director : log
91- link-name : latest_log
92- showLine : true
93- encode-level : LowercaseColorLevelEncoder
94- stacktrace-key : stacktrace
95- log-in-console : true
125+ spec : " @daily" # 定时任务详细配置参考 https://pkg.go.dev/github.com/robfig/cron/v3
126+ detail : [
127+ # tableName: 需要清理的表名
128+ # compareField: 需要比较时间的字段
129+ # interval: 时间间隔, 具体配置详看 time.ParseDuration() 中字符串表示 且不能为负数
130+ # 2160h = 24 * 30 * 3 -> 三个月
131+ { tableName: "sys_operation_records" , compareField: "created_at", interval: "2160h" },
132+ #{ tableName: "log2" , compareField: "created_at", interval: "2160h" }
133+ ]
0 commit comments