# ingress.yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: openwebui-local-ingress namespace: open-webui annotations: # AUTOMATED TLS FIX: Triggers cert-manager to provision the certificate cert-manager.io/cluster-issuer: "letsencrypt-production" # THE 502 FIX: Instructs NGINX to bridge to the unencrypted pod port 80 nginx.ingress.kubernetes.io/backend-protocol: "HTTP" # THE STREAMING FIX: Forces NGINX to instantly forward tokens to your browser nginx.ingress.kubernetes.io/proxy-buffering: "off" nginx.ingress.kubernetes.io/proxy-read-timeout: "600" nginx.ingress.kubernetes.io/proxy-send-timeout: "600" spec: ingressClassName: nginx # AUTOMATED TLS FIX: Instructs NGINX where to mount the generated certificate tls: - secretName: openwebui-tls-secret hosts: - ai.needlestack.boo rules: - host: ai.needlestack.boo http: paths: - path: / pathType: Prefix backend: service: name: open-webui-service port: number: 80