Files
cas_tt_cloud_backend/config.yaml
2021-09-28 11:47:19 +08:00

71 lines
1.3 KiB
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://192.168.0.153:8030
# token有效时间
token_effect_time: 604800
# multiple_login 多地登录
multiple_login: true
server:
port: 8090
read_timeout: 5
write_timeout: 5
idle_timeout: 5
# RATE 限流器
rate:
# 每秒注入容器中数量
limit: 50
# 每个IP每秒请求最大次数
capacity: 100
# ENGINE 配置
engine:
# 开启会输出sql日志
debug: true
# db_mode - mysql | sqlite
db_mode: mysql
max_lifetime: 3600
max_open_conns: 2000
max_idle_conns: 1000
table_prefix:
# 是否采用数据表复数
complex: false
# MYSQL 配置
mysql:
# host: 47.96.31.6
host: 192.168.0.188
port: 3306
user: appuser
password: ABCabc01!
db_name: iot_test
parameters: charset=utf8mb4,utf8&parseTime=True&loc=Asia%2FShanghai
# SQLITE 配置
sqlite:
path: data
name: app.db
cache:
# memory | redis
type: redis
redis:
addr: "192.168.0.188:6379"
password: ABCabc01!
db: 4
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: info # debug | info | warn | error