From b5e53acf0a08f5e058b9673be86552ac6354278e Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 10 Sep 2023 16:23:54 -0700 Subject: [PATCH] Adding health check endpoint to nginx container --- docker/beta/nginx.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker/beta/nginx.conf b/docker/beta/nginx.conf index bbbc2af..05f4f26 100644 --- a/docker/beta/nginx.conf +++ b/docker/beta/nginx.conf @@ -15,6 +15,11 @@ http { location / { 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 { @@ -24,5 +29,10 @@ http { location / { 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"; + } } }