From 73f56818fb693583b2358639779c9080901b15da Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Thu, 1 Oct 2020 12:21:16 +0200 Subject: [PATCH] fix ProxyFix --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 96d3f518..4fa94329 100644 --- a/server.py +++ b/server.py @@ -108,7 +108,7 @@ def create_light_app() -> Flask: def create_app() -> Flask: app = Flask(__name__) # SimpleLogin is deployed behind NGINX - app.wsgi_app = ProxyFix(app.wsgi_app, num_proxies=1) + app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_host=1) limiter.init_app(app) app.url_map.strict_slashes = False