Skip to content

Commit

Permalink
allows forwarded ips
Browse files Browse the repository at this point in the history
  • Loading branch information
Foroxon committed Feb 11, 2025
1 parent b72e6f7 commit 56d2171
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/update_server/update_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,4 @@ async def update_cache():

if __name__ == "__main__":
asyncio.run(update_cache())
uvicorn.run(app, host="0.0.0.0", port=port)
uvicorn.run(app, host="0.0.0.0", port=port, proxy_headers=True, forwarded_allow_ips=["*"])
2 changes: 1 addition & 1 deletion deploy/web_server/web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,4 +649,4 @@ async def stats(request):
)

if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=port)
uvicorn.run(app, host="0.0.0.0", port=port, proxy_headers=True, forwarded_allow_ips=["*"])

0 comments on commit 56d2171

Please sign in to comment.