Skip to content

Commit

Permalink
Added trusted proxy message on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
wittenator committed Feb 25, 2024
1 parent 060fc09 commit 58046db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
allow_headers=["*"],
)
app.add_middleware(GZipMiddleware)
print(f"Setting trusted proxy with IP: {settings.BACKEND_TRUSTED_PROXY_IPS}")
app.add_middleware(ProxyHeadersMiddleware, trusted_hosts=settings.BACKEND_TRUSTED_PROXY_IPS)

app.include_router(api_router, prefix=settings.API_V1_STR)

0 comments on commit 58046db

Please sign in to comment.