You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
917 B
YAML
39 lines
917 B
YAML
apiVersion: traefik.containo.us/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: tandoor-headers
|
|
namespace: tandoor
|
|
spec:
|
|
headers:
|
|
customRequestHeaders:
|
|
X-Forwarded-Proto: https
|
|
---
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: web
|
|
namespace: tandoor
|
|
spec:
|
|
entryPoints:
|
|
- web
|
|
routes:
|
|
- match: Host(`recipes.trivernis.dev`, `recipes.trivernis.net`, `food.trivernis.net`) && PathPrefix(`/media`, `/static`)
|
|
kind: Rule
|
|
middlewares:
|
|
- name: security-headers
|
|
namespace: default
|
|
- name: tandoor-headers
|
|
services:
|
|
- name: tandoor
|
|
port: static
|
|
- match: Host(`recipes.trivernis.dev`, `recipes.trivernis.net`, `food.trivernis.net`)
|
|
kind: Rule
|
|
middlewares:
|
|
- name: security-headers
|
|
namespace: default
|
|
- name: tandoor-headers
|
|
services:
|
|
- name: tandoor
|
|
passHostHeader: true
|
|
port: http
|