dashboard/config/config.yaml
2025-05-22 09:13:28 +08:00

39 lines
850 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.

base:
name: "avcnet_dash"
port: 8080
mode: "dev"
version: "v0.0.1"
log:
level: "debug"
filename: "dash.log"
max_size: 2
max_age: 180
max_backups: 20
database:
# sqlite只需要指定db_name即可
type: "sqlite"
db_name: "./data/sqlite/dash.db" # 如果是sqlite需要指定完整路径和文件名称
# 其他远程数据库需要指定下面的内容
user: ""
password: ""
host: ""
port: 0
max_conns: 0
# 使用令牌桶限流
rate:
fill_interval: 10 # 填充速率 每(ms)填充一个
capacity: 10 #桶容量
#quantum: 1 # 指定每次填充的个数
#rate: 0.1 # 和capacity搭配使用指定填充速率 rate = 0.1 capacity = 200 则表示每秒20填充20个令牌
max_wait: 2 # 最长等待时间(s)
snowflake:
start_time: "2025-05-20"
machine_id: 1
jwt:
salt: "redhat"
expire: 86400