docs/docs/en/api/cli/proxy/nginx/index.md
nb proxy nginx is the command-group entry for the Nginx provider.
If you already use Nginx to manage sites, certificates, caching, or access control, this is usually the place to start. It handles two things:
local or dockernb proxy nginx <command>
| Command | Description |
|---|---|
nb proxy nginx use | Switch the Nginx driver |
nb proxy nginx current | Print the current driver |
nb proxy nginx generate | Generate or refresh the Nginx config for one env |
nb proxy nginx start | Start the Nginx proxy |
nb proxy nginx restart | Restart the Nginx proxy |
nb proxy nginx reload | Reload the Nginx config |
nb proxy nginx stop | Stop the Nginx proxy |
nb proxy nginx status | Show Nginx runtime status |
nb proxy nginx info | Show driver, config paths, and runtime info |
proxy.nginx-driverlocalbin.nginx, whose default value is nginxnginx:latest<docker.container-prefix>-nginx-proxyNB_CLI_ROOT into the container at /appsnb proxy nginx use docker
nb proxy nginx generate --env app1 --host app1.example.com
nb proxy nginx start
nb proxy nginx status
nb proxy nginx info