瀏覽代碼

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;
     }