Skip to content

Commit

Permalink
Use ProxyFix for WSGI
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Aug 8, 2023
1 parent 3e5ebc0 commit 9441f8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from flask.cli import load_dotenv
from flask.helpers import get_load_dotenv
from werkzeug.middleware.proxy_fix import ProxyFix

__all__ = ['application']

Expand All @@ -12,3 +13,5 @@

# pylint: disable=wrong-import-position
from hasjob import app as application # isort:skip

application.wsgi_app = ProxyFix(application.wsgi_app) # type: ignore[method-assign]

0 comments on commit 9441f8d

Please sign in to comment.