Reverse proxy
This article only applies to applications installed using nb init.
In NocoBase, the production environment reverse proxy does more than simply forward requests to the application process. It also needs to handle WebSockets, subpaths, front-end static resources, upload directories, the /files/ file access route, and SPA fallback pages.
The function of nb proxy is to collect these easily missed details into a stable set of command entries.
Core process
If you only look at the core process, it is enough to remember these three commands:
If you are using Caddy, just replace nginx in the command with caddy.
If Nginx or Caddy has been installed locally, just change use docker in the first item to use local.
In most scenarios, it is enough to execute use first, then generate, and finally reload. For details on Nginx or Caddy, continue to their respective pages.
When to choose Nginx and when to choose Caddy
It can usually be judged like this:

