Spaces:
Running

docker / Caddyfile
bacteriaqh's picture
Deploy 5313b66 từ GitHub Actions
e913295 verified
Raw History Blame
659 Bytes
# Cổng duy nhất HF mở ra (7860). Chia traffic theo tiền tố; các app chỉ nghe ở 127.0.0.1.
{
admin off
auto_https off
persist_config off
}
:7860 {
request_body {
max_size 1100MB
}
redir /extractor /extractor/ 308
# Extractor: bỏ tiền tố /extractor trước khi chuyển vào app
handle_path /extractor/* {
reverse_proxy 127.0.0.1:3001
}
# Backend Passport Check (chỉ Cloudflare Worker gọi tới, kèm x-api-key): bỏ tiền tố /passport-check
handle_path /passport-check/* {
reverse_proxy 127.0.0.1:8080 {
flush_interval -1
}
}
redir / /extractor/ 302
handle {
respond "Không tìm thấy" 404
}
}