From 0840efb75989a4deb0018281e0741f79c884c2a8 Mon Sep 17 00:00:00 2001 From: Ronni Baslund Date: Wed, 10 Jun 2026 19:51:25 +0200 Subject: [PATCH] fix(operator,portal): env-driven sign-out URLs + host labels (no more .local in prod) Operator sign-out hardcoded the dev Authentik end-session URL, so prod logout landed on auth.dezky.local. Mirror the portal's env-driven pattern (NUXT_PUBLIC_AUTH_URL/NUXT_PUBLIC_OPERATOR_URL with .local fallbacks). Expose authUrl/operatorUrl via public runtimeConfig and use them for the Authentik admin links and the cosmetic host labels (sidebar, eyebrows, auth-page hints). Portal: signed-out + webmail copy now derive their hosts from runtime config (new public.mailUrl, NUXT_PUBLIC_MAIL_URL in prod). --- apps/operator/components/OpSidebar.vue | 3 ++- apps/operator/nuxt.config.ts | 9 +++++++++ apps/operator/pages/auth/login.vue | 3 ++- apps/operator/pages/index.vue | 3 ++- apps/operator/pages/not-authorized.vue | 3 ++- apps/operator/pages/operator-team.vue | 3 ++- apps/operator/pages/pricing.vue | 3 ++- apps/operator/pages/settings.vue | 2 +- apps/operator/pages/signed-out.vue | 3 ++- apps/operator/server/api/auth/sign-out.get.ts | 11 ++++++++--- apps/portal/nuxt.config.ts | 1 + apps/portal/pages/admin/users.vue | 7 ++++--- apps/portal/pages/signed-out.vue | 3 ++- infrastructure/production/fleet/apps/portal.yaml | 2 ++ 14 files changed, 41 insertions(+), 15 deletions(-) diff --git a/apps/operator/components/OpSidebar.vue b/apps/operator/components/OpSidebar.vue index d8e4558..1d78d40 100644 --- a/apps/operator/components/OpSidebar.vue +++ b/apps/operator/components/OpSidebar.vue @@ -1,4 +1,5 @@