Skip to content

Commit

Permalink
Tell flask it is behind a proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
j4lib committed Sep 5, 2024
1 parent 6e296b3 commit 29204dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wsgi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from qlit.server import app
from werkzeug.middleware.proxy_fix import ProxyFix

if __name__ == "__main__":
app.run()
app.wsgi_app = ProxyFix(
app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1
)
app.run()

0 comments on commit 29204dc

Please sign in to comment.