apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-production
    hajimari.io/enable: "true"
    hajimari.io/icon: jellyfish
    traefik.ingress.kubernetes.io/router.entrypoints: websecure
    kubernetes.io/ingress.class: traefik
    ingress.kubernetes.io/protocol: http
  name: jellyfin
  namespace: media
spec:
  rules:
  - host: "jelly.${SECRET_DOMAIN}"
    http:
      paths:
      - backend:
          service:
            name: jellyfin
            port:
              number: 80
        path: /
        pathType: Prefix
  tls:
  - hosts:
    - "jelly.${SECRET_DOMAIN}"
    secretName: jelly-tls
