add a health check endpoint to nginx.
This commit is contained in:
parent
5d704fd447
commit
3825f6048b
1 changed files with 7 additions and 1 deletions
|
@ -22,8 +22,14 @@ server {
|
||||||
|
|
||||||
# deny access to .htaccess files, if Apache's document root
|
# deny access to .htaccess files, if Apache's document root
|
||||||
# concurs with nginx's one
|
# concurs with nginx's one
|
||||||
#
|
|
||||||
location ~ /\.ht {
|
location ~ /\.ht {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Health check endpoint
|
||||||
|
location /health {
|
||||||
|
access_log off;
|
||||||
|
add_header 'Content-Type' 'application/json';
|
||||||
|
return 200 '{"status":"Healthy"}';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue