mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 23:34:05 +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:
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue