From 4a9297f4a3e872c9093fa557b6c5225310ce9544 Mon Sep 17 00:00:00 2001 From: nite Date: Thu, 12 Jun 2025 02:24:18 +1000 Subject: [PATCH] mod example config and compose.yaml --- compose.yml | 5 ++--- config.example.json | 2 +- config.example.toml | 22 ---------------------- config.example.yaml | 2 +- 4 files changed, 4 insertions(+), 27 deletions(-) delete mode 100644 config.example.toml diff --git a/compose.yml b/compose.yml index 963f5b7..833777b 100644 --- a/compose.yml +++ b/compose.yml @@ -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 diff --git a/config.example.json b/config.example.json index 285222a..de4661e 100644 --- a/config.example.json +++ b/config.example.json @@ -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, diff --git a/config.example.toml b/config.example.toml deleted file mode 100644 index 06a263f..0000000 --- a/config.example.toml +++ /dev/null @@ -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 diff --git a/config.example.yaml b/config.example.yaml index 6c671cd..be1d711 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -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"