-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathnetlify.toml
More file actions
55 lines (47 loc) · 1.43 KB
/
Copy pathnetlify.toml
File metadata and controls
55 lines (47 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[build]
command = "make netlify-build"
publish = "build/site"
[[redirects]]
from = "/home/stable/reference/*"
to = "https://hub.stackable.tech/crds"
status = 301
[[redirects]]
from = "/home/stable/release_notes.html"
to = "/home/stable/release-notes"
status = 301
# -------------
# RATE LIMITING
# All rate limiting is aggregated by client IP and domain (domain is added automatically by Netlify)
# Redirects/rules are evaluated from top to bottom and the first match will always be used by Netlify.
# -------------
#---------------------
# ASSETS RATE LIMITING
# These limits can be set higher, because most automated requests/attacks will most likely only
# request the page itself and not its assets.
# --------------------
# Rate limit access to assets. This redirect rule/rate limit comes BEFORE the catch-all.
[[redirects]]
from = "/_/*"
to = "/_/:splat"
[redirects.rate_limit]
window_limit = 250
window_size = 60
aggregate_by = ["ip"]
# Rate limit pagefind (search) resources. This redirect rule/rate limit comes BEFORE the catch-all.
[[redirects]]
from = "/pagefind/*"
to = "/pagefind/:splat"
[redirects.rate_limit]
window_limit = 250
window_size = 60
aggregate_by = ["ip"]
#------------------------
# CATCH-ALL RATE LIMITING
# -----------------------
[[redirects]]
from = "/*"
to = "/:splat"
[redirects.rate_limit]
window_limit = 50
window_size = 60
aggregate_by = ["ip"]