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