mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-17 12:43:18 +08:00
refactor
This commit is contained in:
22
config.example.toml
Normal file
22
config.example.toml
Normal file
@ -0,0 +1,22 @@
|
||||
# Sub2Clash 配置文件示例 (TOML 格式)
|
||||
# 复制此文件为 config.toml 并根据需要修改配置
|
||||
|
||||
# 服务端口
|
||||
port = 8011
|
||||
|
||||
# 模板配置
|
||||
meta_template = "https://raw.githubusercontent.com/bestnite/sub2clash/refs/heads/main/templates/template_meta.yaml"
|
||||
clash_template = "https://raw.githubusercontent.com/bestnite/sub2clash/refs/heads/main/templates/template_clash.yaml"
|
||||
|
||||
# 请求配置
|
||||
request_retry_times = 3
|
||||
request_max_file_size = 1048576 # 1MB in bytes
|
||||
|
||||
# 缓存配置 (秒)
|
||||
cache_expire = 300 # 5 minutes
|
||||
|
||||
# 日志级别 (debug, info, warn, error)
|
||||
log_level = "info"
|
||||
|
||||
# 短链接长度
|
||||
short_link_length = 6
|
Reference in New Issue
Block a user