mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-15 14:29:09 +01:00
gatus: expect the authentik redirect for Longhorn
Longhorn now sits behind an authentik login on the Gateway instead of nginx basic auth, so the check expects a 302 without following it. Same change for s1 on node001.
This commit is contained in:
1 parent
1f04831a97
commit
0a810817b6
2 files changed
+12
-7
No files matched your search
+4
-2
@@ -69,9 +69,11 @@ endpoints:
|
||||
group: rubenhensen.nl
|
||||
url: https://longhorn.rubenhensen.nl
|
||||
interval: 60s
|
||||
# Behind basic auth, so 401 means it's up
|
||||
# Envoy sends visitors to authentik first, so a redirect means it's up
|
||||
client:
|
||||
ignore-redirect: true
|
||||
conditions:
|
||||
- "[STATUS] == 401"
|
||||
- "[STATUS] == 302"
|
||||
- "[CERTIFICATE_EXPIRATION] > 168h"
|
||||
- name: serpbear
|
||||
group: rubenhensen.nl
|
||||
|
||||
@@ -51,11 +51,14 @@ let
|
||||
|
||||
# Per-host tweaks on top of the default check.
|
||||
gatusOverrides = {
|
||||
# Behind basic auth, so 401 means it's up
|
||||
"longhorn.rubenhensen.nl".conditions = [
|
||||
"[STATUS] == 401"
|
||||
"[CERTIFICATE_EXPIRATION] > 168h"
|
||||
];
|
||||
# Envoy sends visitors to authentik first, so a redirect means it's up
|
||||
"longhorn.rubenhensen.nl" = {
|
||||
client.ignore-redirect = true;
|
||||
conditions = [
|
||||
"[STATUS] == 302"
|
||||
"[CERTIFICATE_EXPIRATION] > 168h"
|
||||
];
|
||||
};
|
||||
# mod_auth_openidc answers 401 instead of redirecting to the login
|
||||
# page unless the client asks for HTML
|
||||
"rss.rubenhensen.nl".headers.Accept = "text/html";
|
||||
|
||||
Reference in new issue
Block a user