How It Works
DevProxy keeps the network-facing pieces on the host operating system and leaves your app process alone.
The model
- Your app runs natively, in WSL, or in a container if the host can reach it
- DevProxy registers a stable
.localhostname - The hosts file maps that hostname to
127.0.0.1 - Caddy terminates HTTPS with
tls internal - Caddy proxies the request back to the local port
Attach-first workflow
DevProxy is designed for attach mode. You start the server yourself, then register the port with devproxy add.
Lifecycle
For a service named api.myapp on port 8000, DevProxy:
- Derives
api.myapp.local - Stores service metadata in the platform data directory
- Writes the DevProxy-managed hosts entry
- Generates the Caddyfile
- Validates the Caddyfile
- Reloads Caddy, or starts it if needed
Managed files
The registry, Caddyfile, and managed hosts block are the only persistent files DevProxy owns.