mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-16 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
|
group: rubenhensen.nl
|
||||||
url: https://longhorn.rubenhensen.nl
|
url: https://longhorn.rubenhensen.nl
|
||||||
interval: 60s
|
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:
|
conditions:
|
||||||
- "[STATUS] == 401"
|
- "[STATUS] == 302"
|
||||||
- "[CERTIFICATE_EXPIRATION] > 168h"
|
- "[CERTIFICATE_EXPIRATION] > 168h"
|
||||||
- name: serpbear
|
- name: serpbear
|
||||||
group: rubenhensen.nl
|
group: rubenhensen.nl
|
||||||
|
|||||||
@@ -51,11 +51,14 @@ let
|
|||||||
|
|
||||||
# Per-host tweaks on top of the default check.
|
# Per-host tweaks on top of the default check.
|
||||||
gatusOverrides = {
|
gatusOverrides = {
|
||||||
# Behind basic auth, so 401 means it's up
|
# Envoy sends visitors to authentik first, so a redirect means it's up
|
||||||
"longhorn.rubenhensen.nl".conditions = [
|
"longhorn.rubenhensen.nl" = {
|
||||||
"[STATUS] == 401"
|
client.ignore-redirect = true;
|
||||||
"[CERTIFICATE_EXPIRATION] > 168h"
|
conditions = [
|
||||||
];
|
"[STATUS] == 302"
|
||||||
|
"[CERTIFICATE_EXPIRATION] > 168h"
|
||||||
|
];
|
||||||
|
};
|
||||||
# mod_auth_openidc answers 401 instead of redirecting to the login
|
# mod_auth_openidc answers 401 instead of redirecting to the login
|
||||||
# page unless the client asks for HTML
|
# page unless the client asks for HTML
|
||||||
"rss.rubenhensen.nl".headers.Accept = "text/html";
|
"rss.rubenhensen.nl".headers.Accept = "text/html";
|
||||||
|
|||||||
Reference in new issue
Block a user