From 539828ffc0e689b40789e206c63222526e3adec1 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Thu, 6 Mar 2025 10:44:18 -0600 Subject: [PATCH 1/2] feat: add rate limit to wiki services --- pillar/base/haproxy.sls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pillar/base/haproxy.sls b/pillar/base/haproxy.sls index c2bd10d0..149f0485 100644 --- a/pillar/base/haproxy.sls +++ b/pillar/base/haproxy.sls @@ -84,6 +84,7 @@ haproxy: - wiki.jython.org verify_host: moin.psf.io check: "HEAD /moin/HelpContents HTTP/1.1\\r\\nHost:\\ wiki.python.org" + rate_limit: {{ config.get('rate_limit', 50) }} svn: domains: @@ -169,7 +170,7 @@ haproxy: buildbot_worker_direct: bind: :9020 service: buildbot-master-worker - extra: + extra : - timeout client 86400 - timeout server 86400 From 17df7f215a70fe22b31040f5d45a9812e2c3c9a0 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Thu, 6 Mar 2025 10:47:00 -0600 Subject: [PATCH 2/2] Update pillar/base/haproxy.sls --- pillar/base/haproxy.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/base/haproxy.sls b/pillar/base/haproxy.sls index 149f0485..be7ed914 100644 --- a/pillar/base/haproxy.sls +++ b/pillar/base/haproxy.sls @@ -170,7 +170,7 @@ haproxy: buildbot_worker_direct: bind: :9020 service: buildbot-master-worker - extra : + extra: - timeout client 86400 - timeout server 86400