Skip to content

Commit 4218d87

Browse files
docs: add env var documentation to bun and deno runtime pages
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent cd7850a commit 4218d87

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

docs/2.deploy/10.runtimes/bun.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,14 @@ bun run ./.output/server/index.mjs
1717
```
1818

1919
:read-more{to="https://bun.sh"}
20+
21+
### Environment Variables
22+
23+
You can customize server behavior using following environment variables:
24+
25+
- `NITRO_PORT` or `PORT` (defaults to `3000`)
26+
- `NITRO_HOST` or `HOST`
27+
- `NITRO_UNIX_SOCKET` - if provided (a path to the desired socket file) the service will be served over the provided UNIX socket.
28+
- `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.
29+
- `NITRO_SHUTDOWN_DISABLED` - Disables the graceful shutdown feature when set to `'true'`. Defaults to `'false'`.
30+
- `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `3000` milliseconds.

docs/2.deploy/10.runtimes/deno.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ NITRO_PRESET=deno_server npm run build
1818
deno run --unstable --allow-net --allow-read --allow-env .output/server/index.ts
1919
```
2020

21+
### Environment Variables
22+
23+
You can customize server behavior using following environment variables:
24+
25+
- `NITRO_PORT` or `PORT` (defaults to `3000`)
26+
- `NITRO_HOST` or `HOST`
27+
- `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.
28+
- `NITRO_SHUTDOWN_DISABLED` - Disables the graceful shutdown feature when set to `'true'`. Defaults to `'false'`.
29+
- `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `3000` milliseconds.
30+
2131
## Deno Deploy
2232

2333
:read-more{to="/deploy/providers/deno-deploy"}

0 commit comments

Comments
 (0)