mirror of
https://github.com/simple-login/app.git
synced 2025-11-09 17:30:44 +08:00
fix ProxyFix
This commit is contained in:
parent
351adc57f5
commit
73f56818fb
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue