Files
homelab/k8s-ng/apps/mtproxy/ingress.yaml
T

38 lines
749 B
YAML
Raw Normal View History

apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: mtproxy-auth
spec:
forwardAuth:
address: http://auth-proxy.keycloak.svc:80/auth
trustForwardHeader: false
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: mtproxy-links
spec:
entryPoints:
- websecure
routes:
- match: Host(`proxy.hexor.cy`)
kind: Rule
middlewares:
- name: mtproxy-auth
services:
- name: mtproxy-link-reader
port: 80
tls:
secretName: mtproxy-links-tls
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: mtproxy-links-tls
spec:
secretName: mtproxy-links-tls
issuerRef:
name: letsencrypt
kind: ClusterIssuer
dnsNames:
- proxy.hexor.cy