From ac0274076e63e8534d43ea3ba092c4fcaa70dcf4 Mon Sep 17 00:00:00 2001 From: iFargle Date: Mon, 20 Feb 2023 19:44:50 +0900 Subject: [PATCH] test --- server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.py b/server.py index 5c64a27..95088fe 100644 --- a/server.py +++ b/server.py @@ -5,6 +5,8 @@ from flask import Flask, Markup, redirect, render_template, request, ur from dateutil import parser from flask_executor import Executor +from werkzeug.middleware.proxy_fix import ProxyFix + # Global vars # Colors: https://materializecss.com/color.html COLOR_NAV = "blue-grey darken-1" @@ -15,6 +17,7 @@ STATIC_URL_PATH = "/static" # Initiate the Flask application: app = Flask(__name__, static_url_path=STATIC_URL_PATH) +app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1) LOG = logging.create_logger(app) executor = Executor(app)