blob: 331d1210b84d174c1e7a3acdbdbb1de46939956e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|