From 2babc0d02fe0302ad152850bca8c7faa1f4a74b5 Mon Sep 17 00:00:00 2001 From: Francis Kayiwa Date: Tue, 5 Nov 2024 08:30:37 -0500 Subject: [PATCH] add health check to staging and production (#5506) --- roles/nginxplus/files/conf/http/geaccirc.conf | 2 +- roles/nginxplus/files/conf/http/geaccirc_staging.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/nginxplus/files/conf/http/geaccirc.conf b/roles/nginxplus/files/conf/http/geaccirc.conf index c5301fbd3..27974447e 100644 --- a/roles/nginxplus/files/conf/http/geaccirc.conf +++ b/roles/nginxplus/files/conf/http/geaccirc.conf @@ -45,7 +45,7 @@ server { proxy_cache geaccirc-prodcache; limit_req zone=geaccirc-prod-ratelimit burst=20 nodelay; proxy_intercept_errors on; - health_check interval=10 fails=3 passes=2; + health_check uri=/health.json interval=10 fails=3 passes=2; } include /etc/nginx/conf.d/templates/errors.conf; diff --git a/roles/nginxplus/files/conf/http/geaccirc_staging.conf b/roles/nginxplus/files/conf/http/geaccirc_staging.conf index 296896176..c74b9e0c7 100644 --- a/roles/nginxplus/files/conf/http/geaccirc_staging.conf +++ b/roles/nginxplus/files/conf/http/geaccirc_staging.conf @@ -45,6 +45,7 @@ server { proxy_intercept_errors on; proxy_cache geaccirc-stagingcache; limit_req zone=geaccirc-staging-ratelimit burst=20 nodelay; + health_check uri=/health.json interval=10 fails=3 passes=2; } include /etc/nginx/conf.d/templates/errors.conf;