Spaces:
Running
Running
Download Caddyfile from bacteriaqh/docker: direct link, hf CLI and curl.
- Browser
- Download file 659 Bytes
-
https://huggingface.co/spaces/bacteriaqh/docker/resolve/main/Caddyfile
- Command line
-
hf download hf://spaces/bacteriaqh/docker/Caddyfile
-
curl -L -o Caddyfile https://huggingface.co/spaces/bacteriaqh/docker/resolve/main/Caddyfile
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 | |
| } | |
| } | |