diff --git a/backend/src/app.ts b/backend/src/app.ts index 691ff8d52..ef2277afe 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -64,7 +64,7 @@ const metricsMiddleware = promBundle({ promRegistry: register, }); const app = express(); -app.set('trust proxy', true); +app.set('trust proxy', 1); const apiRouter = express.Router(); const JWTStrategy = passportJWT.Strategy; diff --git a/frontend/Caddyfile b/frontend/Caddyfile index 7af6a5cd6..7837114bd 100644 --- a/frontend/Caddyfile +++ b/frontend/Caddyfile @@ -49,6 +49,7 @@ reverse_proxy /api/* {$BACKEND_URL}{ header_up X-Forwarded-Proto https } +} :3001 { handle /health { respond "OK"