docs/docs/en/api/cli/proxy/caddy/index.md
nb proxy caddy is the command-group entry for the Caddy provider.
If you already have a domain, want to get HTTPS running quickly, and do not want to maintain too many TLS details yourself, this is usually the place to start. It handles two things:
local or dockernb proxy caddy <command>
| Command | Description |
|---|---|
nb proxy caddy use | Switch the Caddy driver |
nb proxy caddy current | Print the current driver |
nb proxy caddy generate | Generate or refresh the Caddy config for one env |
nb proxy caddy start | Start the Caddy proxy |
nb proxy caddy restart | Restart the Caddy proxy |
nb proxy caddy reload | Reload the Caddy config |
nb proxy caddy stop | Stop the Caddy proxy |
nb proxy caddy status | Show Caddy runtime status |
nb proxy caddy info | Show driver, config paths, and runtime info |
proxy.caddy-driverlocalbin.caddy, whose default value is caddycaddy:latest<docker.container-prefix>-caddy-proxyNB_CLI_ROOT into the container at /appsnb proxy caddy use local
nb proxy caddy generate --env app1 --host app1.example.com
nb proxy caddy start
nb proxy caddy status
nb proxy caddy info