Adding health check endpoint to nginx container
This commit is contained in:
parent
efdd75b831
commit
b5e53acf0a
@ -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";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user