소스 검색

feat: health check on nginx wrapper

Fela Maslen 5 년 전
부모
커밋
48c1ad9e0f
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      gmus-web/nginx.conf

+ 9 - 0
gmus-web/nginx.conf

@@ -8,6 +8,15 @@ http {
 
     root /app;
 
+    location /liveness {
+      access_log off;
+      return 200 "healthy\n";
+    }
+    location /readiness {
+      access_log off;
+      return 200 "healthy\n";
+    }
+
     location / {
       try_files $uri $uri/ =404;
     }