Fix wsgi app

master
Klaupacius 2025-01-12 16:22:38 -06:00
parent 5829eccb9d
commit b6c10bb657
1 changed files with 3 additions and 2 deletions

View File

@ -18,9 +18,10 @@ def get_locale():
app = Flask(__name__)
application = app
if os.environ.get('FLASK_ENV') == 'prod':
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1,
x_prefix=1)
application.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1,
x_prefix=1)
babel = Babel(app, locale_selector=get_locale)