Adding health check endpoint to nginx container

This commit is contained in:
shockrah 2023-09-10 16:23:54 -07:00
parent efdd75b831
commit b5e53acf0a

View File

@ -15,6 +15,11 @@ http {
location / { location / {
proxy_pass http://shockrah.xyz.s3-website-us-west-1.amazonaws.com; proxy_pass http://shockrah.xyz.s3-website-us-west-1.amazonaws.com;
} }
location /health {
access_log off;
add_header 'Content-Type' 'text/plain';
return 200 "healthy";
}
} }
server { server {
@ -24,5 +29,10 @@ http {
location / { location / {
proxy_pass http://resume.shockrah.xyz.s3-website-us-west-1.amazonaws.com; proxy_pass http://resume.shockrah.xyz.s3-website-us-west-1.amazonaws.com;
} }
location /health {
access_log off;
add_header 'Content-Type' 'text/plain';
return 200 "healthy";
}
} }
} }