From 43ad7586ce6b3fb4052b175f7601ebab559b8400 Mon Sep 17 00:00:00 2001 From: rasmus Date: Sun, 29 Jun 2025 16:36:55 +0300 Subject: [PATCH] traefik: fix dashboard root redirect Closes https://git.k-space.ee/k-space/kube/issues/70 --- traefik/application-extras.yml | 6 +++--- traefik/values.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/traefik/application-extras.yml b/traefik/application-extras.yml index ac3f536..8cbc200 100644 --- a/traefik/application-extras.yml +++ b/traefik/application-extras.yml @@ -33,7 +33,7 @@ metadata: name: dashboard spec: displayName: Traefik dashboard - uri: 'https://traefik.k-space.ee' + uri: 'https://traefik.k-space.ee/dashboard/#/' --- apiVersion: traefik.io/v1alpha1 kind: Middleware @@ -41,8 +41,8 @@ metadata: name: dashboard-redirect spec: redirectRegex: - regex: ^https://traefik.k-space.ee/?$ - replacement: https://traefik.k-space.ee/dashboard/ + regex: ^https://traefik.k-space.ee/$ + replacement: https://traefik.k-space.ee/dashboard/#/ permanent: false --- diff --git a/traefik/values.yml b/traefik/values.yml index 00bb45e..d006d4f 100644 --- a/traefik/values.yml +++ b/traefik/values.yml @@ -60,7 +60,7 @@ ingressRoute: dashboard: enabled: true domain: traefik.k-space.ee - matchRule: Host(`traefik.k-space.ee`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`)) + matchRule: Host(`traefik.k-space.ee`) entryPoints: ["websecure"] middlewares: - name: "dashboard"