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
|
name: sub2clash
|
||||||
services:
|
services:
|
||||||
sub2clash:
|
sub2clash:
|
||||||
container_name: sub2clash
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: nite07/sub2clash:latest
|
image: nite07/sub2clash:latest
|
||||||
ports:
|
ports:
|
||||||
- "8011:8011"
|
- "8011:8011"
|
||||||
volumes:
|
volumes:
|
||||||
- ./logs:/app/logs
|
# - ./logs:/app/logs
|
||||||
- ./templates:/app/templates
|
# - ./templates:/app/templates
|
||||||
- ./data:/app/data
|
- ./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",
|
"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",
|
"clash_template": "https://raw.githubusercontent.com/bestnite/sub2clash/refs/heads/main/templates/template_clash.yaml",
|
||||||
"request_retry_times": 3,
|
"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 并根据需要修改配置
|
# 复制此文件为 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"
|
meta_template: "https://raw.githubusercontent.com/bestnite/sub2clash/refs/heads/main/templates/template_meta.yaml"
|
||||||
|
Reference in New Issue
Block a user