Fix tandoor path matching

main
trivernis 1 year ago
parent e0cc64b574
commit 5571bc6e51
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: DFFFCC2C7A02DB45

@ -9,6 +9,16 @@ spec:
X-Forwarded-Proto: https X-Forwarded-Proto: https
--- ---
apiVersion: traefik.containo.us/v1alpha1 apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: tandoor-identity
namespace: tandoor
spec:
headers:
customResponseHeaders:
X-Hello: world
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: recipes-route name: recipes-route
@ -17,7 +27,7 @@ spec:
entryPoints: entryPoints:
- web - web
routes: routes:
- match: (Host(`recipes.trivernis.dev`) || Host(`recipes.trivernis.net`)) && (Path(`/media`) || Path(`/static`)) - match: Host(`recipes.trivernis.dev`, `recipes.trivernis.net`) && PathPrefix(`/media`, `/static`)
kind: Rule kind: Rule
middlewares: middlewares:
- name: security-headers - name: security-headers
@ -25,8 +35,8 @@ spec:
- name: tandoor-headers - name: tandoor-headers
services: services:
- name: tandoor - name: tandoor
port: 80 port: static
- match: Host(`recipes.trivernis.dev`) || Host(`recipes.trivernis.net`) - match: Host(`recipes.trivernis.dev`, `recipes.trivernis.net`)
kind: Rule kind: Rule
middlewares: middlewares:
- name: security-headers - name: security-headers
@ -34,4 +44,4 @@ spec:
- name: tandoor-headers - name: tandoor-headers
services: services:
- name: tandoor - name: tandoor
port: 8080 port: http
Loading…
Cancel
Save