add a health check endpoint to nginx.

This commit is contained in:
Greyscale 2024-08-01 18:24:12 +02:00
parent 5d704fd447
commit 3825f6048b

View file

@ -22,8 +22,14 @@ server {
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
# Health check endpoint
location /health {
access_log off;
add_header 'Content-Type' 'application/json';
return 200 '{"status":"Healthy"}';
}
}