caddy reverse-proxy --from :8080 --to localhost:3000

Category: Web Servers & Proxies

caddy reverse-proxy --from :8080 --to localhost:3000

Proxy a port to a local backend without TLS

Binds port 8080 and forwards every request to the app on port 3000, with no domain or HTTPS involved, which is perfect for local development. The :8080 form listens on all interfaces. Add --from localhost:8080 to restrict it to loopback only.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.