-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.yaml.example
More file actions
35 lines (30 loc) · 1.24 KB
/
config.yaml.example
File metadata and controls
35 lines (30 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# EasyTier-Monitor 配置文件
# 服务器配置
server:
http_port: 2010 # HTTP服务监听端口
host: 0.0.0.0 # HTTP服务监听地址
# CLI配置
cli:
path: "easytier" # EasyTier CLI工具路径
timeout: 5 # 命令执行超时时间(秒)
max_retries: 3 # 命令执行失败最大重试次数
# 缓存配置
cache:
enabled: true # 是否启用缓存
default_ttl: 10 # 默认缓存过期时间(秒)
peer_ttl: 10 # Peer信息缓存过期时间(秒)
node_ttl: 30 # Node信息缓存过期时间(秒)
connector_ttl: 30 # Connector信息缓存过期时间(秒)
# 日志配置
log:
level: "info" # 日志级别:debug, info, warn, error
file: "" # 日志文件路径(空表示标准输出)
max_size: 100 # 单个日志文件最大大小(MB)
max_age: 7 # 日志文件最大保留天数
max_backups: 3 # 日志文件最大保留个数
compress: false # 是否压缩日志文件
# 安全配置
security:
enabled: false # 是否启用API认证
api_key: "" # API密钥(启用认证时必填)
allowed_ips: "" # 允许访问的IP地址(逗号分隔,空表示允许所有)