B
This commit is contained in:
@@ -48,6 +48,7 @@ sub-provider/
|
||||
cn-ip.yaml
|
||||
data/
|
||||
cache/
|
||||
sources/
|
||||
.env.example
|
||||
Dockerfile
|
||||
docker-compose.yaml
|
||||
@@ -69,6 +70,7 @@ cp .env.example .env
|
||||
- `PUBLIC_PATH` 改成足够长的随机字符串
|
||||
- `PUBLIC_BASE_URL` 建议填写你反代后的最终访问地址,例如 `https://sub.example.com`
|
||||
- `AIRPORT_A_URL` / `AIRPORT_B_URL` 都可以直接填订阅地址,项目会自动判断是 YAML 还是 URI 订阅
|
||||
- 也可以直接填本地文件路径,例如 `/app/data/sources/airport-b.txt` 或 `file:///app/data/sources/airport-b.txt`
|
||||
- 允许把其中一个留空;留空时这个机场会自动跳过
|
||||
|
||||
3. 启动:
|
||||
@@ -148,6 +150,7 @@ HEAD /<PUBLIC_PATH>/bundle/stash.yaml?sources=airport-a,airport-b
|
||||
- 生成后的完整 YAML 会缓存到 `output/bundle-cache/`,默认 600 秒内直接返回缓存
|
||||
- 可用 `force_refresh=true` 强制跳过缓存并覆盖旧缓存文件
|
||||
- 上游订阅原始内容也会按 TTL 落盘缓存到 `data/fetch-cache/`,默认 900 秒
|
||||
- 如果你想固定使用本地文件订阅,可以把文件放到 `data/sources/`,再把 `AIRPORT_*_URL` 指向 `/app/data/sources/xxx.txt`
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user