Skip to content

Commit c4a0457

Browse files
author
奇淼(piexlmax
authored
Merge pull request flipped-aurora#623 from flipped-aurora/gva_gormv2_dev
补充遗漏的json type
2 parents 990eb10 + 87f86da commit c4a0457

File tree

6 files changed

+186
-214
lines changed

6 files changed

+186
-214
lines changed

server/config.yaml

Lines changed: 78 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,13 @@
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
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
738
autocode:
749
transfer-restart: true
75-
root: ""
10+
root: E:\gin-vue-admin
7611
server: /server
7712
server-api: /api/v1/autocode
7813
server-initialize: /initialize
@@ -82,53 +17,80 @@ autocode:
8217
server-service: /service/autocode
8318
web: /web/src
8419
web-api: /api
85-
web-flow: /view
8620
web-form: /view
8721
web-table: /view
88-
89-
# qiniu configuration (请自行七牛申请对应的 公钥 私钥 bucket 和 域名地址)
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
9055
qiniu:
91-
zone: 'ZoneHuaDong'
92-
bucket: ''
93-
img-path: ''
56+
zone: ZoneHuaDong
57+
bucket: ""
58+
img-path: ""
9459
use-https: false
95-
access-key: ''
96-
secret-key: ''
60+
access-key: ""
61+
secret-key: ""
9762
use-cdn-domains: 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
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
11073
tencent-cos:
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:
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:
12581
start: 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-
]
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

0 commit comments

Comments
 (0)