mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 11:11:35 +00:00
Unify Caddy and git-pages health checks.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
13
fly.toml
13
fly.toml
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user