|
|
@ -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
|