fix redirects

This commit is contained in:
2024-07-28 15:37:19 +03:00
parent 0eb2dc6503
commit 73d185b2ee
4 changed files with 45 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: auth2-redirect
spec:
redirectRegex:
regex: ^https://auth2.k-space.ee/(.*)
replacement: https://auth.k-space.ee/${1}
permanent: false
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: auth2
spec:
entryPoints:
- websecure
routes:
- match: Host(`auth2.k-space.ee`)
kind: Rule
middlewares:
- name: auth2-redirect
services:
- kind: TraefikService
name: api@internal