1. sslinks 403: Cloudflare blocks server IP. Add fetcher.proxy_url config so subscription/flow requests can route through an HTTP proxy. 2. Egress probe: Docker image lacked sing-box. Install sing-box v1.11.4 in the Alpine runtime stage. 3. Collection rename: group by display baseName instead of internal groupKey, format index as -N instead of %02d. Fixes double-suffix issue where EnsureUniqueProxyNames appended -2/-3 onto existing 02.
35 lines
760 B
YAML
35 lines
760 B
YAML
server:
|
|
host: "0.0.0.0"
|
|
port: 3000
|
|
read_timeout: 30s
|
|
write_timeout: 60s
|
|
body_limit: 4194304 # 4 MiB
|
|
|
|
database:
|
|
path: "./data/sub-store.db"
|
|
|
|
auth:
|
|
admin_token: "CHANGE_ME_ADMIN_TOKEN"
|
|
download_token: "CHANGE_ME_DOWNLOAD_TOKEN"
|
|
download_hosts: []
|
|
|
|
fetcher:
|
|
default_timeout: 30s
|
|
default_user_agent: "clash.meta/v1.19.24"
|
|
default_flow_user_agent: "clash.meta/v1.19.24"
|
|
concurrency: 3
|
|
concurrency_wait: 0s
|
|
cache_ttl: 300s
|
|
cache_stale_on_error: true
|
|
max_source_urls: 8
|
|
max_response_bytes: 2097152 # 2 MiB
|
|
max_total_bytes: 12582912 # 12 MiB
|
|
proxy_url: "" # e.g. "http://127.0.0.1:7890" for fetching sources behind Cloudflare
|
|
|
|
recycle:
|
|
max_entries: 50
|
|
|
|
app:
|
|
name: "Sub-Store"
|
|
version: "1.0.0"
|