1
- aliyun-oss :
2
- endpoint : yourEndpoint
3
- access-key-id : yourAccessKeyId
4
- access-key-secret : yourAccessKeySecret
5
- bucket-name : yourBucketName
6
- bucket-url : yourBucketUrl
7
- base-path : yourBasePath
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
+ 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
+
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
8
73
autocode :
9
74
transfer-restart : true
10
- root : E:\gin-vue-admin
75
+ root : " "
11
76
server : /server
12
77
server-api : /api/v1/autocode
13
78
server-initialize : /initialize
@@ -17,80 +82,54 @@ autocode:
17
82
server-service : /service/autocode
18
83
web : /web/src
19
84
web-api : /api
85
+ web-flow : /view
20
86
web-form : /view
21
87
web-table : /view
22
- web-flow : /view
23
- captcha :
24
- key-long : 6
25
- img-width : 240
26
- img-height : 80
27
- casbin :
28
- model-path : ./resource/rbac_model.conf
29
- email :
30
- to : xxx@qq.com
31
- port : 465
32
- from : xxx@163.com
33
- host : smtp.163.com
34
- is-ssl : true
35
- secret : xxx
36
- nickname : test
37
- excel :
38
- dir : ./resource/excel/
39
- jwt :
40
- signing-key : qmPlus
41
- expires-time : 604800
42
- buffer-time : 86400
43
- local :
44
- path : uploads/file
45
- mysql :
46
- path : 127.0.0.1:3306
47
- config : charset=utf8mb4&parseTime=True&loc=Local
48
- db-name : gva
49
- username : root
50
- password : Aa@6447985
51
- max-idle-conns : 0
52
- max-open-conns : 0
53
- log-mode : " "
54
- log-zap : false
88
+
89
+ # qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址)
55
90
qiniu :
56
- zone : ZoneHuaDong
57
- bucket : " "
58
- img-path : " "
91
+ zone : ' ZoneHuaDong'
92
+ bucket : ' '
93
+ img-path : ' '
59
94
use-https : false
60
- access-key : " "
61
- secret-key : " "
95
+ access-key : ' '
96
+ secret-key : ' '
62
97
use-cdn-domains : false
63
- redis :
64
- db : 0
65
- addr : 127.0.0.1:6379
66
- password : " "
67
- system :
68
- env : public
69
- addr : 8888
70
- db-type : mysql
71
- oss-type : local
72
- 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
+ base-path : ' yourBasePath'
108
+
109
+ # tencent cos configuration
73
110
tencent-cos :
74
- bucket : xxxxx-10005608
75
- region : ap-shanghai
76
- secret-id : xxxxxxxx
77
- secret-key : xxxxxxxx
78
- base-url : https://gin.vue.admin
79
- path-prefix : gin-vue-admin
80
- timer :
111
+ bucket : ' xxxxx-10005608'
112
+ region : ' ap-shanghai'
113
+ secret-id : ' xxxxxxxx'
114
+ secret-key : ' xxxxxxxx'
115
+ base-url : ' https://gin.vue.admin'
116
+ path-prefix : ' gin-vue-admin'
117
+
118
+ # excel configuration
119
+ excel :
120
+ dir : ' ./resource/excel/'
121
+
122
+
123
+ # timer task db clear table
124
+ Timer :
81
125
start : true
82
- spec : ' @daily'
83
- detail :
84
- - tableName : sys_operation_records
85
- compareField : created_at
86
- interval : 2160h
87
- zap :
88
- level : info
89
- format : console
90
- prefix : ' [GIN-VUE-ADMIN]'
91
- director : log
92
- link-name : latest_log
93
- showLine : true
94
- encode-level : LowercaseColorLevelEncoder
95
- stacktrace-key : stacktrace
96
- log-in-console : true
126
+ spec : " @daily" # 定时任务详细配置参考 https://pkg.go.dev/github.com/robfig/cron/v3
127
+ detail : [
128
+ # tableName: 需要清理的表名
129
+ # compareField: 需要比较时间的字段
130
+ # interval: 时间间隔, 具体配置详看 time.ParseDuration() 中字符串表示 且不能为负数
131
+ # 2160h = 24 * 30 * 3 -> 三个月
132
+ { tableName: "sys_operation_records" , compareField: "created_at", interval: "2160h" },
133
+ #{ tableName: "log2" , compareField: "created_at", interval: "2160h" }
134
+ ]
135
+
0 commit comments