diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2021-08-17 11:55:01 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2021-08-17 11:55:01 +0200 |
commit | 4048998fef5e856a4280517918a0dc063d44c10d (patch) | |
tree | 852613649faed596cac384273ceac7b838bfb062 | |
parent | 5b4bc762da3e1d43436da5d6812032ccf031f45d (diff) |
-rw-r--r-- | pastepy/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pastepy/__init__.py b/pastepy/__init__.py index 0cc4db6..a3114e1 100644 --- a/pastepy/__init__.py +++ b/pastepy/__init__.py @@ -1,7 +1,9 @@ from flask import Flask +from werkzeug.middleware.proxy_fix import ProxyFix app = Flask(__name__) app.config.from_pyfile('pastepy.cfg') +app.wsgi_app = ProxyFix(app.wsgi_app) with app.app_context(): from .pastepy import app as pastepy |