Files
cas_tt_cloud_backend/.default_setting.yaml
2021-12-28 10:57:13 +08:00

49 lines
877 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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