-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
72 lines (65 loc) · 1.85 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
app:
env: local
name: gin-app # 应用名称
# 服务配置
server:
http:
addr: 0.0.0.0
port: 8000
timeout: 1s
grpc:
addr: 0.0.0.0
port: 9000
timeout: 1s
jwt:
secret: 3Bde3BGEbYqtqyEUzW3ry8jKFcaPH17fRmTmqE7MDr05Lwj95uruRKrrkb44TJ4s
jwt_ttl: 43200
jwt_blacklist_grace_period: 1800
refresh_grace_period: 1800
minio:
endpoint: "127.0.0.1:9000"
access_key_id: "minioadmin"
secret_access_key: "minioadmin"
database:
default:
driver: mysql # 数据库驱动
host: 127.0.0.1 # 域名
port: 3306 # 端口号
database: blog # 数据库名称
username: root # 用户名
password: Qfz115740. # 密码
charset: utf8mb4 # 编码格式
max_idle_conns: 10 # 空闲连接池中连接的最大数量
max_open_conns: 100 # 打开数据库连接的最大数量
enable_file_log_writer: true # 是否启用日志文件
logger_group: mysql # 日志文件名称
redis:
default:
host: 127.0.0.1
port: 6379
db: 8
password: qfz115740.
read_timeout: 0.2s
write_timeout: 0.2s
# 日志配置
logger:
default:
level: info # 日志等级
root_dir: ./runtime/logs # 日志根目录
filename: efeasy-gin.log # 日志文件名称
format: # 写入格式 可选json
show_line: true # 是否显示调用行
max_backups: 3 # 旧文件的最大个数
max_size: 500 # 日志文件最大大小(MB)
max_age: 28 # 旧文件的最大保留天数
compress: true # 是否压缩
mysql:
level: info # 日志等级
root_dir: ./runtime/logs # 日志根目录
filename: mysql.log # 日志文件名称
format: # 写入格式 可选json
show_line: true # 是否显示调用行
max_backups: 3 # 旧文件的最大个数
max_size: 500 # 日志文件最大大小(MB)
max_age: 28 # 旧文件的最大保留天数
compress: true # 是否压缩