From 5394513db5d386c4d7a6ad8648a740ce6c1d2267 Mon Sep 17 00:00:00 2001 From: DarkSky Date: Tue, 20 Dec 2022 16:31:59 +0800 Subject: [PATCH] chore: health check --- .github/deployment/Caddyfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/deployment/Caddyfile b/.github/deployment/Caddyfile index d261c7aa26..dbb032229f 100644 --- a/.github/deployment/Caddyfile +++ b/.github/deployment/Caddyfile @@ -15,14 +15,13 @@ Cache-Control "public, max-age=86400, must-revalidate" } - handle_path /api/* { - reverse_proxy {$API_SERVER} { - @error status 500 502 503 503 - handle_response @error { - root * /dist - rewrite * /50x.html - file_server - } + reverse_proxy /api/* {$API_SERVER} { + health_uri /api/healthz + @error status 500 502 503 503 + handle_response @error { + root * /dist + rewrite * /50x.html + file_server } }