Download Caddyfile from Tom716/set-api: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/spaces/Tom716/set-api/resolve/main/Caddyfile
- Command line
-
hf download hf://spaces/Tom716/set-api/Caddyfile
-
curl -L -o Caddyfile https://huggingface.co/spaces/Tom716/set-api/resolve/main/Caddyfile
521 Bytes
| { | |
| admin localhost:2019 | |
| auto_https off | |
| } | |
| :7860 { | |
| # Better Stack keep-alive health check | |
| handle /status { | |
| respond "Caddy Proxy Active" 200 | |
| } | |
| # Telegram NestJS API (Port 3000) | |
| handle /api/telegram/* { | |
| reverse_proxy localhost:3000 | |
| } | |
| # Python K3s Test API (Port 8000) | |
| handle /api/k3s/* { | |
| uri strip_prefix /api/k3s | |
| reverse_proxy localhost:8000 | |
| } | |
| # Default route for remaining API calls | |
| handle { | |
| reverse_proxy localhost:3000 | |
| } | |
| } |