apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: lan-play-auth spec: forwardAuth: address: http://auth-proxy.auth-proxy.svc:80/auth trustForwardHeader: true authResponseHeaders: - X-Auth-Request-User - X-Auth-Request-Email - X-Auth-Request-Groups --- apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: lan-play-public spec: entryPoints: - websecure routes: - match: Host(`lp.hexor.cy`) kind: Rule middlewares: - name: lan-play-auth services: - name: lan-play port: 80 tls: secretName: lan-play-tls --- apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: lan-play-tls spec: secretName: lan-play-tls issuerRef: name: letsencrypt kind: ClusterIssuer dnsNames: - lp.hexor.cy --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: lan-play-local labels: firefly.hexor.cy/private-ai: "true" annotations: kubernetes.io/ingress.class: traefik-ai spec: rules: - host: video.lan http: paths: - path: / pathType: Prefix backend: service: name: lan-play port: number: 80