49 lines
877 B
YAML
49 lines
877 B
YAML
name:
|
||
# domain 域名
|
||
domain: http://127.0.0.1:8000
|
||
# token有效时间(秒)
|
||
token_effect_time: 604800
|
||
# multiple_login 多地登录
|
||
multiple_login: true
|
||
|
||
server:
|
||
port: 8000
|
||
read_timeout: 5
|
||
write_timeout: 5
|
||
idle_timeout: 5
|
||
|
||
# ES 服务器
|
||
es_server:
|
||
host: http://192.168.0.188:9200
|
||
|
||
# RATE 限流器
|
||
rate:
|
||
# 每秒注入容器中数量
|
||
limit: 50
|
||
# 每个IP每秒请求最大次数
|
||
capacity: 100
|
||
|
||
cache:
|
||
# memory | redis
|
||
type: memory
|
||
redis:
|
||
addr: "127.0.0.1:6379"
|
||
password:
|
||
db: 0
|
||
max_active: 0
|
||
max_idle: 1000
|
||
idle_timeout: 240
|
||
|
||
# UPLOAD 上传文件配置
|
||
upload:
|
||
path: upload/
|
||
ext: png,jpg,csv,xls,xlsx,pcm,wav,amr,mp3,mp4,json
|
||
# size 4<<20,不支持位运算,文件最大限制
|
||
size: 4194304
|
||
rename: true
|
||
|
||
#LOG 日志管理
|
||
log:
|
||
file: log/logs.log
|
||
least_day: 7
|
||
level: debug # debug | info | warn | error |