feat: support NAS imports and proxy names

This commit is contained in:
jocayn
2026-06-13 16:19:52 +08:00
parent ec6b3cb93f
commit b231e78498
6 changed files with 212 additions and 47 deletions
+10 -9
View File
@@ -2,15 +2,16 @@ services:
sub2proxy:
build: .
container_name: sub2proxy
restart: unless-stopped
ports:
- "3000:3000"
volumes:
# 映射订阅配置文件,防止容器重启后订阅丢失
- ./subs.json:/app/subs.json
# 映射模板文件夹,方便在 NAS 目录下随时修改或添加自定义配置模板
- ./templates:/app/templates
# 映射输出文件夹,生成的文件和历史记录将同步保存在 NAS 主机目录中
- ./out:/app/out
restart: unless-stopped
environment:
- HEADLESS=true
PORT: "3000"
HOST: "0.0.0.0"
AUTO_OPEN: "0"
# Set this when clients should import through a fixed LAN IP, domain, or reverse proxy.
# PUBLIC_BASE_URL: "http://192.168.1.10:3000"
volumes:
- ./subs.json:/app/subs.json
- ./out:/app/out
- ./templates:/app/templates:ro