From 4ae4b1f1069a39a62c2ac0e046ff5a451fb8d3f8 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Thu, 31 Aug 2023 08:36:48 -0400 Subject: modify only app.wsgi_app --- newspipe/bootstrap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/newspipe/bootstrap.py b/newspipe/bootstrap.py index c353a936..0409906a 100644 --- a/newspipe/bootstrap.py +++ b/newspipe/bootstrap.py @@ -74,8 +74,9 @@ set_logging(application.config["LOG_PATH"]) if "PREFIX" in application.config: #application.wsgi_app = ReverseProxied(application.wsgi_app, script_name=application.config["PREFIX"]) - _app = application - application = DispatcherMiddleware(None,{str(application.config["PREFIX"]):_app}) + #_app = application + #application = DispatcherMiddleware(None,{str(application.config["PREFIX"]):_app}) + application.wsgi_app = DispatcherMiddleware(None,{str(application.config["PREFIX"]):application.wsgi_app}) db = SQLAlchemy(application) -- cgit