diff --git a/Caddyfile b/Caddyfile index d2dfbf9..b1ea209 100644 --- a/Caddyfile +++ b/Caddyfile @@ -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 } diff --git a/fly.toml b/fly.toml index 390585c..5b3f53e 100644 --- a/fly.toml +++ b/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"