From ba9c2e51b7533c573c58c1f403e105a6956e0e1c Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Thu, 12 Oct 2023 16:24:14 +0100 Subject: [PATCH] fix: allow specifying API_PREFIX if behind proxy --- src/backend/app/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/app/main.py b/src/backend/app/main.py index 766eeffacb..beb5d92708 100644 --- a/src/backend/app/main.py +++ b/src/backend/app/main.py @@ -59,6 +59,7 @@ def get_application() -> FastAPI: "url": "https://raw.githubusercontent.com/hotosm/fmtm/main/LICENSE", }, debug=settings.DEBUG, + root_path=settings.API_PREFIX, ) # Set custom logger