Skip to content

Commit b4e1ccb

Browse files
authored
Merge pull request #38 from mnfst/rate-limit
doc: security with rate limit
2 parents da6cddd + c22131a commit b4e1ccb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

security.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
id: security
3+
title: Security
4+
description: Implement Security in your Manifest backend and make sure that your app is protected.
5+
---
6+
7+
# Security
8+
9+
Implement security measures in your Manifest backend.
10+
11+
## Rate limiting
12+
13+
Rate-limiting can protect your backend from **brute-force attacks** by blocking requests after reaching a limit.
14+
15+
You can implement one or several throttler definitions to limit API calls in the `manifest.yml` file. The following example allow no more than 2 calls per second, and 50 calls per minute:
16+
17+
```yaml title="manifest.yml"
18+
name: my app
19+
20+
settings:
21+
rateLimits:
22+
- { name: 'short', limit: 2, ttl: 1000 } # 2 requests per second
23+
- { name: 'medium', limit: 50, ttl: 60000 } # 50 requests per minute.
24+
```

0 commit comments

Comments
 (0)