summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2021-08-17 11:55:01 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2021-08-17 11:55:01 +0200
commit4048998fef5e856a4280517918a0dc063d44c10d (patch)
tree852613649faed596cac384273ceac7b838bfb062
parent5b4bc762da3e1d43436da5d6812032ccf031f45d (diff)
Add ProxyFix middlewareHEADmaster
-rw-r--r--pastepy/__init__.py2
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