diff options
author | B. Stack <bgstack15@gmail.com> | 2023-08-31 08:36:48 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2023-08-31 08:36:48 -0400 |
commit | 4ae4b1f1069a39a62c2ac0e046ff5a451fb8d3f8 (patch) | |
tree | 755c874478b5559bad9cf400df6ca6fe5ace7f47 | |
parent | fix braces typo (diff) | |
download | newspipe-4ae4b1f1069a39a62c2ac0e046ff5a451fb8d3f8.tar.gz newspipe-4ae4b1f1069a39a62c2ac0e046ff5a451fb8d3f8.tar.bz2 newspipe-4ae4b1f1069a39a62c2ac0e046ff5a451fb8d3f8.zip |
modify only app.wsgi_app
-rw-r--r-- | newspipe/bootstrap.py | 5 |
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) |