-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathnetlify.toml
More file actions
46 lines (40 loc) · 1.41 KB
/
netlify.toml
File metadata and controls
46 lines (40 loc) · 1.41 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
# Netlify redirects
# 1. To add a subdomain, add a redirect in this file first and merge the PR
# 2. Add the subdomain to the Processing website in netlify by going to Domain Management -> Production Domains -> Add domain alias
# Make sure the force option is added and the from starts with https
# Bypass page-data from rate limiter
# gatsby is making a ton of requests which triggers the rate limiter quickly
[[redirects]]
from = "/page-data/*"
to = "/page-data/:splat"
status = 200
[[redirects]]
from = "https://wiki.processing.org/*"
to = "https://github.com/processing/processing4/wiki"
status = 302
force = true
[[redirects]]
from = "https://vscode.processing.org/*"
to = "https://marketplace.visualstudio.com/items?itemName=processing-foundation.processing-vscode-extension"
status = 302
force = true
[[redirects]]
from = "https://discord.processing.org/*"
to = "https://discord.gg/h99u95nU7q"
status = 302
force = true
[[redirects]]
from = "https://survey.processing.org/*"
to = "https://docs.google.com/forms/d/e/1FAIpQLSduTT2cWlXzr7QG_g4LJ-Op6LwVTI7dtXHCGVH_FdI0BK00qg/viewform?usp=header"
status = 302
force = true
# Rate-limit web-requests to {{window_limit}} requests per {{window_size}} seconds
[[redirects]]
from = "/*"
to = "/:splat"
[redirects.rate_limit]
action = "rewrite"
to = "/429/"
window_limit = 500
window_size = 60
aggregate_by = ["ip", "domain"]