fix ProxyFix
This commit is contained in:
parent
351adc57f5
commit
73f56818fb
|
@ -108,7 +108,7 @@ def create_light_app() -> Flask:
|
||||||
def create_app() -> Flask:
|
def create_app() -> Flask:
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
# SimpleLogin is deployed behind NGINX
|
# 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)
|
limiter.init_app(app)
|
||||||
|
|
||||||
app.url_map.strict_slashes = False
|
app.url_map.strict_slashes = False
|
||||||
|
|
Loading…
Reference in New Issue