fix(comfyui): keep the login path on an ungated ingress

Gating /oauth2 with the app redirects /oauth2/start to itself and the browser
loops. ingress-nginx applies an ingress's annotations to the locations that
ingress defines, so the login path belongs on its own object without auth-url.

This split failed once before, and the split was not the reason: the app ingress
carried a configuration-snippet that the controller rejects, which dropped that
whole object and left only the login path rendered.
This commit was merged in pull request #83.
This commit is contained in:
2026-10-27 14:26:49 -07:00
parent 056964075e
commit 2485b5f165
2 changed files with 25 additions and 12 deletions
-12
View File
@@ -29,18 +29,6 @@ spec:
- host: comfyui.riotpiao.com
http:
paths:
# The login path lives on the SAME ingress as the app. Two Ingresses on
# one host do not merge their annotations: nginx applies the annotations
# of a single ingress per host, so a separate /oauth2 object silently
# dropped the auth_request above and every request fell through to the
# backend, which answered 404.
- path: /oauth2
pathType: Prefix
backend:
service:
name: comfyui-oauth2-proxy
port:
number: 4180
- path: /
pathType: Prefix
backend: