apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: torrent
  labels:
    app: torrent
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
    nginx.ingress.kubernetes.io/auth-url: http://authelia.kube-system.svc.cluster.local/api/verify
    nginx.ingress.kubernetes.io/auth-signin: https://auth.home.edgard.org
    nginx.ingress.kubernetes.io/auth-response-headers: Remote-User,Remote-Name,Remote-Groups,Remote-Email
spec:
  rules:
    - host: torrent.home.edgard.org
      http:
        paths:
          - pathType: Prefix
            path: /
            backend:
              service:
                name: torrent
                port:
                  number: 8080
  tls:
    - hosts:
        - torrent.home.edgard.org
      secretName: torrent-tls
