From 758fc078742dfda8fe0fcc8ea143c786ce3a6282 Mon Sep 17 00:00:00 2001 From: Arne Baeumler Date: Sat, 5 Jun 2021 15:23:23 +0200 Subject: [PATCH] proxyfix --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index 0ffd884..4768caa 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,6 @@ from flask import Flask, render_template, url_for, request, redirect, Response, abort, session from flask_sqlalchemy import SQLAlchemy +from werkzeug.middleware.proxy_fix import ProxyFix from datetime import datetime import magic import random @@ -30,6 +31,7 @@ rechenreihen = { } app = Flask(__name__) +app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1, x_host=1) app.secret_key = 'eng5iikeiwah3lae4idoo0woh4eiy6Th' @app.route('/', methods = ['GET', 'POST'])