Forráskód Böngészése

feat: health check on nginx wrapper

Fela Maslen 5 éve
szülő
commit
48c1ad9e0f
1 módosított fájl, 9 hozzáadás és 0 törlés
  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;
     }