nb proxy caddy generate
Generate or refresh the Caddy entry config for one CLI-managed env.
Usage
Parameters
Generated files
Using env test2 as an example, the command typically maintains these files and directories:
NB_CLI_ROOT/.nocobase/proxy/caddy/nocobase.caddyNB_CLI_ROOT/.nocobase/proxy/caddy/test2/app.caddyNB_CLI_ROOT/.nocobase/proxy/caddy/test2/public/index-v1.htmlNB_CLI_ROOT/.nocobase/proxy/caddy/test2/public/index-v2.html
In the current design, app.caddy is already the complete site config for one env and is no longer split into a separate generated.caddy file.
Examples
Notes
generateonly writes or refreshes config and does not automatically start Caddy- Regenerating config overwrites
app.caddyas a whole - If you change settings such as
app-portorapp-public-pathwithnb env update, you will usually need to rerun this command - Only CLI-managed
localordockerenvs can use this command

