Files
ArmedPolice/config.yaml
2021-11-02 16:22:07 +08:00

81 lines
1.6 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.31.195:8030/
# token有效时间
token_effect_time: 2592000
# multiple_login 多地登录
multiple_login: true
server:
port: 8010
read_timeout: 5
write_timeout: 5
idle_timeout: 5
# config 配置信息
config:
vip_price: 99
wechat:
# appid: wxc8b039943eca7a27
appid: wx880e43c02bf7bd55
# appsecret: a96335396caa2e91d9f93c8ba88f83ae
appsecret: 10017dff4f55f86cb2074003f38b5a23
# 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: armed_police
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: 5
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