From 4ee4d6a0a4e37d33030b0e20070ee172f1a0c4b8 Mon Sep 17 00:00:00 2001 From: Daniel Dolezal Date: Sun, 26 Jul 2026 13:06:55 +0200 Subject: [PATCH] fix: align proxy diagnostics with shared web stack - Advance quart_common to the same revision used by webside-and-api. - Log loaded proxy trust settings during NanoShare startup. - Make deployed proxy header configuration easier to verify. --- my_modules/app/setup.py | 7 +++++++ quart_common | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/my_modules/app/setup.py b/my_modules/app/setup.py index 3f45b51..1ec081b 100644 --- a/my_modules/app/setup.py +++ b/my_modules/app/setup.py @@ -9,6 +9,7 @@ from my_modules.app.constens import SECRET_KEY, THE_IP_BOT_MANAGER from my_modules.OrphanStorageIdRegistry import OrphanStorageIdRegistry from my_modules.AsyncCache import AsyncCache from my_modules.app.logger import logger +from quart_common.web.request import TRUST_PROXY_HEADERS, TRUSTED_PROXY_IPS, TRUSTED_PROXY_CIDRS from quart_common.web.wide_event import register_wide_event_logging from my_helpers.db.convex.ConvexRuntime import ConvexRuntime @@ -104,6 +105,12 @@ app.orphan_storage_registry = OrphanStorageIdRegistry( @app.before_serving async def init_convex(): + await logger.info( + f"Proxy trust config | trust_headers={TRUST_PROXY_HEADERS} " + f"trusted_proxy_ips={sorted(TRUSTED_PROXY_IPS)} " + f"trusted_proxy_cidrs={[str(network) for network in TRUSTED_PROXY_CIDRS]}" + ) + await convex_runtime.start() app.convex = ConvexDB(runtime=convex_runtime) diff --git a/quart_common b/quart_common index 77823f5..5b3cf7b 160000 --- a/quart_common +++ b/quart_common @@ -1 +1 @@ -Subproject commit 77823f57d1f87ef0dab3c038096de3d7bf692d79 +Subproject commit 5b3cf7b59a304319110e3b8622b2dfc844f4c802