apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: affine-ingress
  namespace: affine
  annotations:
    # (If you’re using cert-manager + Let’s Encrypt)
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
    nginx.ingress.kubernetes.io/proxy-body-size: "50m"
spec:
  ingressClassName: nginx
  tls:
    - hosts:
        - affine.prod.panic.haus      # ← replace with your desired Affine hostname
      secretName: affine-tls          # ← must match an existing TLS Secret for that host
  rules:
    - host: affine.prod.panic.haus   # ← change to whatever subdomain you choose
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: affine-server
                port:
                  number: 3010