nb proxy nginx generate
Generate or refresh the Nginx 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/nginx/nocobase.confNB_CLI_ROOT/.nocobase/proxy/nginx/snippets/NB_CLI_ROOT/.nocobase/proxy/nginx/test2/app.confNB_CLI_ROOT/.nocobase/proxy/nginx/test2/public/index-v1.htmlNB_CLI_ROOT/.nocobase/proxy/nginx/test2/public/index-v2.html
The generated Nginx entry covers these main capability areas:
uploadsdistwell-knownapiwsspa
Examples
Notes
generateonly writes or refreshes config and does not automatically start Nginxapp.confis the editable entry file, but its managed block must stay intact- 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

