From 51767ff0d3664f446370566f4716f0f5058e46f2 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Mon, 13 Oct 2025 01:31:41 -0600 Subject: [PATCH] Add /api/auth/status to public routes Make the session status check endpoint publicly accessible so it can respond even when there's no Authentik session. This allows the endpoint to return {"authenticated": false} instead of being redirected to login. Without this, Authentik intercepts the request and returns HTML login page instead of JSON response. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index b16ca66..5d989df 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,7 +24,7 @@ services: - "traefik.http.services.${APP_NAME}.loadbalancer.server.port=3000" # Router 1: Public PWA resources (no auth) - Higher priority - - "traefik.http.routers.${APP_NAME}-public.rule=Host(`${APP_DOMAIN}`) && (PathPrefix(`/manifest.webmanifest`) || PathPrefix(`/sw.js`) || PathPrefix(`/workbox-`) || PathPrefix(`/icon-`) || PathPrefix(`/apple-touch-icon`) || PathPrefix(`/favicon.ico`) || PathPrefix(`/robots.txt`))" + - "traefik.http.routers.${APP_NAME}-public.rule=Host(`${APP_DOMAIN}`) && (PathPrefix(`/manifest.webmanifest`) || PathPrefix(`/sw.js`) || PathPrefix(`/workbox-`) || PathPrefix(`/icon-`) || PathPrefix(`/apple-touch-icon`) || PathPrefix(`/favicon.ico`) || PathPrefix(`/robots.txt`) || PathPrefix(`/api/auth/status`))" - "traefik.http.routers.${APP_NAME}-public.entrypoints=websecure" - "traefik.http.routers.${APP_NAME}-public.tls.certresolver=letsencrypt" - "traefik.http.routers.${APP_NAME}-public.priority=100"