acmdns(host): expose and monitor health endpoint
All checks were successful
/ Ansible Lint (push) Successful in 2m8s
All checks were successful
/ Ansible Lint (push) Successful in 2m8s
This commit is contained in:
parent
536eedeffc
commit
17ba7c04f2
2 changed files with 11 additions and 0 deletions
|
|
@ -77,6 +77,10 @@ server {
|
||||||
proxy_pass http://127.0.0.1:8080/update;
|
proxy_pass http://127.0.0.1:8080/update;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location = /health { # no auth by proxy required
|
||||||
|
proxy_pass http://127.0.0.1:8080/health;
|
||||||
|
}
|
||||||
|
|
||||||
location @oauth2_signin {
|
location @oauth2_signin {
|
||||||
return 302 /oauth2/sign_in?rd=$scheme://$host$request_uri;
|
return 302 /oauth2/sign_in?rd=$scheme://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,13 @@ endpoints:
|
||||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||||
- "[BODY] == pat(*OAuth2 Proxy*)"
|
- "[BODY] == pat(*OAuth2 Proxy*)"
|
||||||
|
|
||||||
|
- name: ACME DNS (health endpoint)
|
||||||
|
url: "https://acmedns.hamburg.ccc.de/health"
|
||||||
|
<<: *services_chaosknoten_defaults
|
||||||
|
conditions:
|
||||||
|
- "[STATUS] == 200"
|
||||||
|
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||||
|
|
||||||
- name: ACME DNS (update endpoint)
|
- name: ACME DNS (update endpoint)
|
||||||
url: "https://acmedns.hamburg.ccc.de/update"
|
url: "https://acmedns.hamburg.ccc.de/update"
|
||||||
<<: *services_chaosknoten_defaults
|
<<: *services_chaosknoten_defaults
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue