docs(deploy): update default host for node preset (#5228)

This commit is contained in:
webfansplz 2022-06-01 05:20:07 +08:00 committed by GitHub
parent a3332d9b19
commit 2114a02293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ Listening on http://localhost:3000
This preset will respect the following runtime environment variables: This preset will respect the following runtime environment variables:
- `NITRO_PORT` or `PORT` (defaults to `3000`) - `NITRO_PORT` or `PORT` (defaults to `3000`)
- `NITRO_HOST` or `HOST` (defaults to `'localhost'`) - `NITRO_HOST` or `HOST` (defaults to `'0.0.0.0'`)
- `NITRO_SSL_CERT` and `NITRO_SSL_KEY` - if both are present, this will launch the server in HTTPS mode. In the vast majority of cases, this should not be used other than for testing, and the Nitro server should be run behind a reverse proxy like nginx or Cloudflare which terminates SSL. - `NITRO_SSL_CERT` and `NITRO_SSL_KEY` - if both are present, this will launch the server in HTTPS mode. In the vast majority of cases, this should not be used other than for testing, and the Nitro server should be run behind a reverse proxy like nginx or Cloudflare which terminates SSL.
### Using PM2 ### Using PM2