Skip to content

Commit

Permalink
Add proxy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadqur committed Jan 3, 2025
1 parent 8dcd619 commit 2c33d45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@
from .utils import get_config_var as get_var
from .version_data import VERSION, COMMIT

from werkzeug.middleware.proxy_fix import ProxyFix


app = Flask(__name__)
app.logger = get_logger(__name__, log_level="info")

# https://flask.palletsprojects.com/en/stable/deploying/proxy_fix/
app.wsgi_app = ProxyFix(app.wsgi_app)


def load_settings(app):
"""
Expand Down

0 comments on commit 2c33d45

Please sign in to comment.