From d8ee9ec90e09003a17def6d1084831c6030ca57f Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 25 Mar 2025 04:04:49 +0000 Subject: automatic import of copr-frontend --- proxyfix.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 proxyfix.patch (limited to 'proxyfix.patch') diff --git a/proxyfix.patch b/proxyfix.patch new file mode 100644 index 0000000..331d121 --- /dev/null +++ b/proxyfix.patch @@ -0,0 +1,19 @@ +diff --git a/coprs_frontend/application b/coprs_frontend/application +index 753add041..2a8d28ded 100644 +--- a/coprs_frontend/application ++++ b/coprs_frontend/application +@@ -9,6 +9,14 @@ os.environ["COPRS_ENVIRON_PRODUCTION"] = "1" + sys.path.insert(0, os.path.dirname(__file__)) + + from coprs import app ++from werkzeug.middleware.proxy_fix import ProxyFix ++ ++app.wsgi_app = ProxyFix( ++ app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1 ++) ++ ++from werkzeug import Request ++Request.max_form_parts = 5000 # fix /rebuild-all failed when submitted more than 1000 packages + + if app.debug: + from werkzeug.debug import DebuggedApplication -- cgit v1.2.3