Procházet zdrojové kódy

feat: health check on nginx wrapper

Fela Maslen před 5 roky
rodič
revize
48c1ad9e0f
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  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;
     }