Skip to content

Commit

Permalink
FIX: ENABLED FORWARD PREFIX FOR PROXYFIX
Browse files Browse the repository at this point in the history
enabled forward prefix for proxyfix when deployed behind reverse proxy.
nginx config for x-forwarded-prefix should be set simutaneously.
  • Loading branch information
nsosnsos committed Oct 20, 2023
1 parent 5e203a5 commit a3bca4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hallelujah/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def create_app(config_name='default'):
template_folder=configs[config_name].SYS_TEMPLATE)
app.config.from_object(configs[config_name])
configs[config_name].init_app(app)
app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1)
app.wsgi_app = ProxyFix(app.wsgi_app, x_prefix=1)

register_extensions(app)
register_blueprints(app)
Expand Down

0 comments on commit a3bca4e

Please sign in to comment.