mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-17 04:33:18 +08:00
mod example config and compose.yaml
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
name: sub2clash
|
||||
services:
|
||||
sub2clash:
|
||||
container_name: sub2clash
|
||||
restart: unless-stopped
|
||||
image: nite07/sub2clash:latest
|
||||
ports:
|
||||
- "8011:8011"
|
||||
volumes:
|
||||
- ./logs:/app/logs
|
||||
- ./templates:/app/templates
|
||||
# - ./logs:/app/logs
|
||||
# - ./templates:/app/templates
|
||||
- ./data:/app/data
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"port": 8011,
|
||||
"address": "0.0.0.0: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,
|
||||
|
@ -1,22 +0,0 @@
|
||||
# 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
|
@ -2,7 +2,7 @@
|
||||
# 复制此文件为 config.yaml 并根据需要修改配置
|
||||
|
||||
# 服务端口
|
||||
port: 8011
|
||||
address: "0.0.0.0:8011"
|
||||
|
||||
# 模板配置
|
||||
meta_template: "https://raw.githubusercontent.com/bestnite/sub2clash/refs/heads/main/templates/template_meta.yaml"
|
||||
|
Reference in New Issue
Block a user