Download Caddyfile from Tom716/set-api: direct link, hf CLI and curl.
- Browser
- Download file 399 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
399 Bytes
| { | |
| # Enable internal Admin API for dynamic route updates | |
| admin localhost:2019 | |
| auto_https off | |
| } | |
| :7860 { | |
| # Health check endpoint | |
| respond /status "Caddy Proxy Active" 200 | |
| # Route /api/* to NestJS Backend | |
| handle /api/* { | |
| reverse_proxy localhost:3000 | |
| } | |
| # Route /wa/* to WhatsApp Baileys Service | |
| handle /wa/* { | |
| reverse_proxy localhost:3001 | |
| } | |
| } |