Unify Caddy and git-pages health checks.

This commit is contained in:
Catherine
2025-09-18 13:50:48 +00:00
parent 810dc9cea0
commit 2548effeb8
2 changed files with 4 additions and 13 deletions

View File

@@ -57,6 +57,6 @@ https:// {
reverse_proxy http://{$GIT_PAGES_ADDRESS:localhost}:3000
}
http://localhost:2020 {
respond "ok"
http://localhost:2002 {
reverse_proxy http://{$GIT_PAGES_ADDRESS:localhost}:3002
}

View File

@@ -40,19 +40,10 @@ ports = [{ port = 443 }]
auto_stop_machines = "stop"
auto_start_machines = true
[checks.git-pages]
[checks.health]
type = "http"
method = "get"
port = 3002
path = "/"
grace_period = "10s"
interval = "10s"
timeout = "1s"
[checks.caddy]
type = "http"
method = "get"
port = 2020
port = 2002
path = "/"
grace_period = "10s"
interval = "10s"