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: content/configuration/security-limits.md
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@ title: Security & Limits
3
3
description: Configuration for access tokens, cookies, CSP, hashing, CORS, rate limiting, and request limits.
4
4
---
5
5
6
-
7
6
:partial{content="config-env-vars"}
8
7
9
8
| Variable | Description | Default Value |
@@ -59,7 +58,6 @@ Argon2's hashing function is used by Directus to hash user passwords, generate h
59
58
60
59
All `HASH_*` environment variable parameters are passed to the `argon2.hash` function. See the [node-argon2 library options page](https://github.com/ranisalt/node-argon2/wiki/Options) for reference.
61
60
62
-
63
61
::callout{icon="material-symbols:info-outline"}
64
62
**Memory Usage**
65
63
Modifying `HASH_MEMORY_COST` and/or `HASH_PARALLELISM` will affect the amount of memory directus uses when computing hashes; each thread gets `HASH_MEMORY_COST` amount of memory, so the total additional memory will be these two values multiplied. This may cause out of memory errors, especially when running in containerized environments.
@@ -81,7 +79,7 @@ For more details about each configuration variable, please see the [CORS package
81
79
82
80
## Rate Limiting
83
81
84
-
You can use the built-in rate-limiter to prevent users from hitting the API too much.
82
+
You can use the built-in rate-limiter to prevent users from hitting the API too much.
85
83
86
84
Enabling the rate-limiter with no other options will set a default maximum of 50 requests per second, tracked in memory.
87
85
@@ -118,15 +116,16 @@ This rate-limiter prevents the API from accepting new requests while the server
118
116
119
117
Allows you to configure hard technical limits, to prevent abuse and optimize for your particular server environment.
0 commit comments