26 lines
552 B
YAML
26 lines
552 B
YAML
|
apiVersion: traefik.io/v1alpha1
|
||
|
kind: Middleware
|
||
|
metadata:
|
||
|
name: members-inventory-redirect
|
||
|
spec:
|
||
|
redirectRegex:
|
||
|
regex: ^https://members.k-space.ee/(.*)
|
||
|
replacement: https://inventory.k-space.ee/${1}
|
||
|
permanent: false
|
||
|
---
|
||
|
apiVersion: traefik.io/v1alpha1
|
||
|
kind: IngressRoute
|
||
|
metadata:
|
||
|
name: members-inventory
|
||
|
spec:
|
||
|
entryPoints:
|
||
|
- websecure
|
||
|
routes:
|
||
|
- match: Host(`members.k-space.ee`)
|
||
|
kind: Rule
|
||
|
middlewares:
|
||
|
- name: members-inventory-redirect
|
||
|
services:
|
||
|
- kind: TraefikService
|
||
|
name: api@internal
|