Kubernetes.K3s.installLog/services/PVR/ingressRoute-PVR.yml.template
2021-07-29 15:50:09 +02:00

50 lines
1.3 KiB
Plaintext

apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: pvr-apikeys
namespace: pvr
spec:
entryPoints:
- websecure
routes:
- match: Host(`movies.pvr.spamasaurus.com`) && (Headers(`X-Api-Key`, `<removed>`) || Query(`apikey=<removed>`))
kind: Rule
services:
- name: radarr
port: 7878
middlewares:
- name: security-headers@file
- name: compression@file
- match: Host(`books.pvr.spamasaurus.com`) && (Headers(`X-Api-Key`, `<removed>`) || Query(`apikey=<removed>`))
kind: Rule
services:
- name: readarr
port: 8787
middlewares:
- name: security-headers@file
- name: compression@file
- match: Host(`download.pvr.spamasaurus.com`) && (Headers(`X-Api-Key`, `<removed>`) || Query(`apikey=<removed>`))
kind: Rule
services:
- name: sabnzbd
port: 8080
middlewares:
- name: security-headers@file
- name: compression@file
- match: Host(`series.pvr.spamasaurus.com`) && (Headers(`X-Api-Key`, `<removed>`) || Query(`apikey=<removed>`))
kind: Rule
services:
- name: sonarr
port: 8989
middlewares:
- name: security-headers@file
- name: compression@file
tls:
options:
name: defaults@file
certResolver: default
domains:
- main: '*.pvr.spamasaurus.com'
sans:
- 'pvr.spamasaurus.com'