From cb61bb61bfe47bc45ade4dfd7aa282eb1b0f89af Mon Sep 17 00:00:00 2001
From: Andrej Shadura <andrew.shadura@collabora.co.uk>
Date: Fri, 1 Apr 2022 11:13:59 +0200
Subject: [PATCH] Disable rate limiting in Apache as it interferes with
 downloads

Any protection of this kind is best done elsewhere e.g. in the frontend
proxy.

See https://phabricator.apertis.org/T8569

Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk>
---
 Dockerfile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 5776ba4334..bdadca497e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -75,6 +75,10 @@ VOLUME /var/lib/mysql
 ADD https://salsa.debian.org/debian/dbconfig-common/-/commit/0908c4892c91917504b9dd15007e8085451c6a2a.diff /tmp/dbconfig-common-tmp-attr-fix.diff
 RUN patch -p1 /usr/sbin/dbconfig-generate-include /tmp/dbconfig-common-tmp-attr-fix.diff
 
+# Disable rate limiting as it interferes with downloads
+# Any protection of this kind is best done elsewhere
+RUN a2dismod reqtimeout
+
 COPY docker/* /opt/
 ENTRYPOINT /opt/docker-entrypoint.sh
 EXPOSE 80 443
-- 
GitLab