-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yaml.release
153 lines (143 loc) · 3.35 KB
/
config.yaml.release
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# 应用名称
app_name: herman
# 应用运行环境模式(debug/test/release)
mode: release
# 时区
timezone: Asia/Shanghai
# 路由前缀
app_prefix: /api/v1
# 语言
language: zh-CN
# 跨域配置
cors:
# 是否支持跨域
is_open: true
# 允许跨域的域名,多个域名用','逗号隔开或者使用通配符'*',建议结尾不要带'/'
origins: *
# 数据库配置
mysql:
# 连接IP地址
host: 127.0.0.1
# 连接端口号
port: 3306
# 连接用户名
user: root
# 连接密码
password: root
# 连接数据库名称
dbname: herman
# 最大连接数
max_open_conn: 100
# 最大连接空闲数,建议和max_open_conn一致
max_idle_conn: 10
# Redis配置
redis:
# 连接IP地址
host: 127.0.0.1
# 连接端口号
port: 6379
# 连接用户名
username:
# 连接密码
password:
# 默认数据库,默认是0
db: 0
# 最大连接数
pool_size: 100
# Kafka配置
kafka:
# 连接IP地址
host: 127.0.0.1
# 连接端口号
port: 9092
# 日志配置
log:
# 日志级别模式
level: info
# 日志文件名
filename: herman.log
# 单个日志文件大小(MB),日志大小到达max_size就开始backup
max_size: 200
# 旧日志保存的最大天数,默认保存所有旧日志文件
max_age: 90
# 旧日志保存的最大数量,默认保存所有旧日志文件
max_backups: 7
# backup的日志是否使用本地时间戳,默认使用UTC时间
local_time: true
# 对backup的日志是否进行压缩,默认不压缩
compress: true
# JWT配置
jwt:
# token的SECRET 可以执行herman jwt:secret命令随机生成
secret:
# token有效时间(单位:小时)
effect_time: 2
# 验证码配置
captcha:
# 验证码开关
switch: false
# 水印
text: 我的水印
# 验证码类型驱动(本地内存:mem,Redis内存:redis)
cache_type: redis
# 缓存有效时间(单位:秒)
cache_expire_sec: 120
# 项目的绝对路径: 图片、字体等
resource_path: ./
# 短信宝配置
sms:
# 短信宝接口
api: http://api.smsbao.com/
# 短信宝用户名
user:
# 短信宝密码
password:
# 文件存储驱动
storage:
# 文件存储类型(本地:local,阿里云OSS:oss,七牛云:qiniu,腾讯云COS:cos)
drive: local
# 本地存储配置
local:
# 本地存储路径(路径开头结尾不需要加"/")
path: storages/files/uploads
# 阿里云OSS配置
oss:
# 阿里云OSS的AccessKeyID
access_key_id:
# 阿里云OSS的AccessKeySecret
access_key_secret:
# 阿里云OSS的Bucket
bucket:
# 阿里云OSS的Endpoint
endpoint:
# 存储路径(路径开头结尾不需要加"/")
path:
# 七牛云配置
qiniu:
# 七牛云的AccessKey
access_key:
# 七牛云的SecretKey
secret_key:
# 七牛云的外网域名(需要带上http协议)
domain:
# 七牛云的Bucket
bucket:
# 存储路径(路径开头结尾不需要加"/")
path:
# 腾讯云COS配置
cos:
# 腾讯云COS的AppID
app_id:
# 腾讯云COS的SecretID
secret_id:
# 腾讯云COS的SecretKey
secret_key:
# 腾讯云COS的Bucket(注意:腾讯云COS复制出来的bucket名称格式为:bucket名称-appid)
bucket:
# 腾讯云COS的Region
region:
# 存储路径(路径开头结尾不需要加"/")
path:
# openAI配置
openai:
secret_key: