From 58046dbefc920525210d338abed7d7ed0a4a8f08 Mon Sep 17 00:00:00 2001 From: wittenator <9154515+wittenator@users.noreply.github.com> Date: Sun, 25 Feb 2024 21:43:58 +0100 Subject: [PATCH] Added trusted proxy message on startup --- backend/app/app/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/app/main.py b/backend/app/app/main.py index 4401111..322ebcc 100644 --- a/backend/app/app/main.py +++ b/backend/app/app/main.py @@ -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)