Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 2 additions & 131 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,129 +16,9 @@
# 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.
# Our current tier only seems to allow 2 rate limiting rules.
# -------------

# 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
Expand All @@ -154,15 +34,6 @@
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
# -----------------------
Expand All @@ -171,6 +42,6 @@
from = "/*"
to = "/:splat"
[redirects.rate_limit]
window_limit = 50
window_limit = 25
window_size = 60
aggregate_by = ["ip"]
Loading