22
33# jwt configuration
44jwt :
5- signing-key : ' qmPlus'
6- expires-time : 604800
7- buffer-time : 86400
8- issuer : ' qmPlus'
9-
5+ signing-key : qmPlus
6+ expires-time : 7d
7+ buffer-time : 1d
8+ issuer : qmPlus
109# zap logger configuration
1110zap :
12- level : ' info'
13- prefix : ' [github.com/flipped-aurora/gin-vue-admin/server]'
14- format : ' console'
15- director : ' log'
16- encode-level : ' LowercaseColorLevelEncoder'
17- stacktrace-key : ' stacktrace'
18- max-age : 30 # 默认日志留存默认以天为单位
11+ level : info
12+ format : console
13+ prefix : " [github.com/flipped-aurora/gin-vue-admin/server]"
14+ director : log
1915 show-line : true
16+ encode-level : LowercaseColorLevelEncoder
17+ stacktrace-key : stacktrace
2018 log-in-console : true
2119
2220# redis configuration
2321redis :
2422 db : 0
25- addr : ' 177.7.0.14:6379'
26- password : ' '
23+ addr : 177.7.0.14:6379
24+ password : " "
2725
2826# email configuration
2927email :
30- 28+ 3129 port : 465
32- 33- host : ' smtp.163.com'
30+ 31+ host : smtp.163.com
3432 is-ssl : true
35- secret : ' xxx'
36- nickname : ' test'
33+ secret : xxx
34+ nickname : test
3735
3836# system configuration
3937system :
40- env : ' public' # Change to "develop" to skip authentication for development mode
38+ env : public # Change to "develop" to skip authentication for development mode
4139 addr : 8888
42- db-type : ' mysql'
43- oss-type : ' local' # 控制oss选择走本地还是 七牛等其他仓 自行增加其他oss仓可以在 server/utils/upload/upload.go 中 NewOss函数配置
40+ db-type : mysql
41+ oss-type : local # 控制oss选择走本地还是 七牛等其他仓 自行增加其他oss仓可以在 server/utils/upload/upload.go 中 NewOss函数配置
4442 use-redis : false # 使用redis
4543 use-multipoint : false
4644 # IP限制次数 一个小时15000次
@@ -57,12 +55,12 @@ captcha:
5755# mysql connect configuration
5856# 未初始化之前请勿手动修改数据库信息!!!如果一定要手动初始化请看(https://gin-vue-admin.com/docs/first_master)
5957mysql :
60- path : ' '
61- port : ' '
62- config : ' '
63- db-name : ' '
64- username : ' '
65- password : ' '
58+ path : " "
59+ port : " "
60+ config : " "
61+ db-name : " "
62+ username : " "
63+ password : " "
6664 max-idle-conns : 10
6765 max-open-conns : 100
6866 log-mode : " "
@@ -71,12 +69,12 @@ mysql:
7169# pgsql connect configuration
7270# 未初始化之前请勿手动修改数据库信息!!!如果一定要手动初始化请看(https://gin-vue-admin.com/docs/first_master)
7371pgsql :
74- path : ' '
75- port : ' '
76- config : ' '
77- db-name : ' '
78- username : ' '
79- password : ' '
72+ path : " "
73+ port : " "
74+ config : " "
75+ db-name : " "
76+ username : " "
77+ password : " "
8078 max-idle-conns : 10
8179 max-open-conns : 100
8280 log-mode : " "
@@ -86,12 +84,12 @@ db-list:
8684 - disabled : true # 是否启用
8785 type : " " # 数据库的类型,目前支持mysql、pgsql
8886 alias-name : " " # 数据库的名称,注意: alias-name 需要在db-list中唯一
89- path : ' '
90- port : ' '
91- config : ' '
92- db-name : ' '
93- username : ' '
94- password : ' '
87+ path : " "
88+ port : " "
89+ config : " "
90+ db-name : " "
91+ username : " "
92+ password : " "
9593 max-idle-conns : 10
9694 max-open-conns : 100
9795 log-mode : " "
@@ -100,8 +98,8 @@ db-list:
10098
10199# local configuration
102100local :
103- path : ' uploads/file' # 访问路径
104- store-path : ' uploads/file' # 存储路径
101+ path : uploads/file
102+ store-path : uploads/file
105103
106104# autocode configuration
107105autocode :
@@ -124,67 +122,67 @@ autocode:
124122
125123# qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址)
126124qiniu :
127- zone : ' ZoneHuaDong'
128- bucket : ' '
129- img-path : ' '
125+ zone : ZoneHuaDong
126+ bucket : " "
127+ img-path : " "
130128 use-https : false
131- access-key : ' '
132- secret-key : ' '
129+ access-key : " "
130+ secret-key : " "
133131 use-cdn-domains : false
134132
135133# aliyun oss configuration
136134aliyun-oss :
137- endpoint : ' yourEndpoint'
138- access-key-id : ' yourAccessKeyId'
139- access-key-secret : ' yourAccessKeySecret'
140- bucket-name : ' yourBucketName'
141- bucket-url : ' yourBucketUrl'
142- base-path : ' yourBasePath'
135+ endpoint : yourEndpoint
136+ access-key-id : yourAccessKeyId
137+ access-key-secret : yourAccessKeySecret
138+ bucket-name : yourBucketName
139+ bucket-url : yourBucketUrl
140+ base-path : yourBasePath
143141
144142# tencent cos configuration
145143tencent-cos :
146- bucket : ' xxxxx-10005608'
147- region : ' ap-shanghai'
148- secret-id : ' xxxxxxxx '
149- secret-key : ' xxxxxxxx '
150- base-url : ' https://gin.vue.admin'
151- path-prefix : ' github.com/flipped-aurora/gin-vue-admin/server'
144+ bucket : xxxxx-10005608
145+ region : ap-shanghai
146+ secret-id : your-secret-id
147+ secret-key : your-secret-key
148+ base-url : https://gin.vue.admin
149+ path-prefix : github.com/flipped-aurora/gin-vue-admin/server
152150
153151# aws s3 configuration (minio compatible)
154152aws-s3 :
155153 bucket : xxxxx-10005608
156154 region : ap-shanghai
157- endpoint : ' '
155+ endpoint : " "
158156 s3-force-path-style : false
159157 disable-ssl : false
160- secret-id : xxxxxxxx
161- secret-key : xxxxxxxx
158+ secret-id : your-secret-id
159+ secret-key : your-secret-key
162160 base-url : https://gin.vue.admin
163161 path-prefix : github.com/flipped-aurora/gin-vue-admin/server
164162
165163# huawei obs configuration
166164hua-wei-obs :
167- path : ' you-path'
168- bucket : ' you-bucket'
169- endpoint : ' you-endpoint'
170- access-key : ' you-access-key'
171- secret-key : ' you-secret-key'
165+ path : you-path
166+ bucket : you-bucket
167+ endpoint : you-endpoint
168+ access-key : you-access-key
169+ secret-key : you-secret-key
172170
173171# excel configuration
174172excel :
175- dir : ' ./resource/excel/'
173+ dir : ./resource/excel/
176174
177175# timer task db clear table
178176Timer :
179177 start : true
180178 spec : " @daily" # 定时任务详细配置参考 https://pkg.go.dev/github.com/robfig/cron/v3
181179 detail :
182- - tableName : " sys_operation_records"
183- compareField : " created_at"
184- interval : " 2160h"
185- - tableName : " jwt_blacklists"
186- compareField : " created_at"
187- interval : " 168h"
180+ - tableName : sys_operation_records
181+ compareField : created_at
182+ interval : 2160h
183+ - tableName : jwt_blacklists
184+ compareField : created_at
185+ interval : 168h
188186
189187# 跨域配置
190188# 需要配合 server/initialize/router.go#L32 使用
@@ -200,4 +198,4 @@ cors:
200198 allow-headers : content-type
201199 allow-methods : GET, POST
202200 expose-headers : Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers, Content-Type
203- allow-credentials : true # 布尔值
201+ allow-credentials : true # 布尔值
0 commit comments