aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-08-31 08:36:48 -0400
committerB. Stack <bgstack15@gmail.com>2023-08-31 08:36:48 -0400
commit4ae4b1f1069a39a62c2ac0e046ff5a451fb8d3f8 (patch)
tree755c874478b5559bad9cf400df6ca6fe5ace7f47
parentfix braces typo (diff)
downloadnewspipe-4ae4b1f1069a39a62c2ac0e046ff5a451fb8d3f8.tar.gz
newspipe-4ae4b1f1069a39a62c2ac0e046ff5a451fb8d3f8.tar.bz2
newspipe-4ae4b1f1069a39a62c2ac0e046ff5a451fb8d3f8.zip
modify only app.wsgi_app
-rw-r--r--newspipe/bootstrap.py5
1 files 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)
bgstack15