-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathnetlify.toml
More file actions
176 lines (153 loc) · 4.05 KB
/
Copy pathnetlify.toml
File metadata and controls
176 lines (153 loc) · 4.05 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
[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.
# -------------
# Rate limit the top most pages
[[redirects]]
from = "/home/stable/spark-k8s/"
to = "/home/stable/spark-k8s/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/druid/"
to = "/home/stable/druid/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/nifi/"
to = "/home/stable/nifi/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/superset/"
to = "/home/stable/superset/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/trino/"
to = "/home/stable/trino/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/zookeeper/"
to = "/home/stable/zookeeper/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/opa/"
to = "/home/stable/opa/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/hbase/"
to = "/home/stable/hbase/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/airflow/"
to = "/home/stable/airflow/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/hive/"
to = "/home/stable/hive/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/kafka/"
to = "/home/stable/kafka/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/hdfs/"
to = "/home/stable/hdfs/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/secret-operator/"
to = "/home/stable/secret-operator/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/listener-operator/"
to = "/home/stable/listener-operator/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
[[redirects]]
from = "/home/stable/commons-operator/"
to = "/home/stable/commons-operator/"
[redirects.rate_limit]
window_limit = 10
window_size = 60
aggregate_by = ["ip"]
#---------------------
# 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"]