---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: transmission
  namespace: media
  annotations:
    traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
    #,networking-authentik@kubernetescrd
    traefik.ingress.kubernetes.io/router.middlewares: "networking-rfc1918-ips@kubernetescrd"
spec:
  ingressClassName: "traefik"
  tls:
    - hosts:
        - "tms.${SECRET_DOMAIN}"
      secretName: "wildcard-${SECRET_DOMAIN/./-}-tls"
  rules:
    - host: "tms.${SECRET_DOMAIN}"
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: transmission-transmission-openvpn
                port:
                  number: 80
