traefik: fix dashboard root redirect

Closes #70
This commit is contained in:
2025-06-29 16:36:55 +03:00
parent 1b34a48e81
commit 43ad7586ce
2 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ metadata:
name: dashboard name: dashboard
spec: spec:
displayName: Traefik dashboard displayName: Traefik dashboard
uri: 'https://traefik.k-space.ee' uri: 'https://traefik.k-space.ee/dashboard/#/'
--- ---
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1
kind: Middleware kind: Middleware
@@ -41,8 +41,8 @@ metadata:
name: dashboard-redirect name: dashboard-redirect
spec: spec:
redirectRegex: redirectRegex:
regex: ^https://traefik.k-space.ee/?$ regex: ^https://traefik.k-space.ee/$
replacement: https://traefik.k-space.ee/dashboard/ replacement: https://traefik.k-space.ee/dashboard/#/
permanent: false permanent: false
--- ---

View File

@@ -60,7 +60,7 @@ ingressRoute:
dashboard: dashboard:
enabled: true enabled: true
domain: traefik.k-space.ee domain: traefik.k-space.ee
matchRule: Host(`traefik.k-space.ee`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`)) matchRule: Host(`traefik.k-space.ee`)
entryPoints: ["websecure"] entryPoints: ["websecure"]
middlewares: middlewares:
- name: "dashboard" - name: "dashboard"