You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,9 @@ You can pass the following options via CLI arguments. You can also use `--config
171
171
| Set the plugin timeout |`-T`|`--plugin-timeout`|`FASTIFY_PLUGIN_TIMEOUT`|
172
172
| Defines the maximum payload, in bytes,<br>that the server is allowed to accept ||`--body-limit`|`FASTIFY_BODY_LIMIT`|
173
173
| Set the maximum ms delay before forcefully closing pending requests after receiving SIGTERM or SIGINT signals; and uncaughtException or unhandledRejection errors (default: 500) |`-g`|`--close-grace-delay`|`FASTIFY_CLOSE_GRACE_DELAY`|
174
+
| Set the boolean value for `trustProxy` (1st precedence) ||`--trust-proxy-enabled`|`FASTIFY_TRUST_PROXY_ENABLED`|
175
+
| Set the IP/CIDR value for `trustProxy` (2nd precedence) ||`--trust-proxy-ips`|`FASTIFY_TRUST_PROXY_IPS`|
176
+
| Set the nth hop value for `trustProxy` (3rd precedence) ||`--trust-proxy-hop`|`FASTIFY_TRUST_PROXY_HOP`|
174
177
175
178
By default `fastify-cli` runs [`dotenv`](https://www.npmjs.com/package/dotenv), so it will load all the env variables stored in `.env` in your current working directory.
0 commit comments