fix(ingress-nginx): remove 401 from custom error page

401s are not simply cosmetic errors, they're used by apps to signal for authentication, either by the app's internal authentication or mechanisms like forward-auth. Thus, remove custom error page redirect for it so login functionality on apps don't break
This commit is contained in:
JJGadgets
2023-06-07 16:12:28 +08:00
parent fd19d4d5a0
commit 351d6898ef

View File

@@ -44,7 +44,7 @@ spec:
disable-access-log: "false"
log-format-escape-json: "true"
# hardening
custom-http-errors: 400,401,403,404,405,409,410,411,412,413,414,415,416,417,418,421,425,431,451,500,501,502,503,504,505,506,510
custom-http-errors: 400,403,404,405,409,410,411,412,413,414,415,416,417,418,421,425,431,451,500,501,502,503,504,505,506,510
hsts-max-age: "31449600"
hsts-preload: "true"
ssl-protocols: TLSv1.3 TLSv1.2