diff --git a/devops/vps2/configs/Caddyfile b/devops/vps2/configs/Caddyfile index e4f6103d0..7b3a39337 100644 --- a/devops/vps2/configs/Caddyfile +++ b/devops/vps2/configs/Caddyfile @@ -139,7 +139,10 @@ acc.clothingloop.org { } handle_path /api/* { - reverse_proxy 127.0.0.1:8082 + reverse_proxy 127.0.0.1:8082 { + health_uri /v2/ping + lb_try_duration 30s + } } redir /mailpit /mailpit/ @@ -148,7 +151,10 @@ acc.clothingloop.org { hello@clothingloop.org TUFJTFBJVF9QQVNTV09SRA== } rewrite * /mailpit{path} - reverse_proxy 127.0.0.1:8085 + reverse_proxy 127.0.0.1:8085 { + health_uri /api/v1/info + lb_try_duration 30s + } } handle { @@ -172,7 +178,10 @@ acc.app.clothingloop.org { } handle_path /api/* { - reverse_proxy 127.0.0.1:8082 + reverse_proxy 127.0.0.1:8082 { + health_uri /v2/ping + lb_try_duration 30s + } } handle {