fix ProxyFix

This commit is contained in:
Son NK 2020-10-01 12:21:16 +02:00
parent 351adc57f5
commit 73f56818fb
1 changed files with 1 additions and 1 deletions

View File

@ -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