Explorar o código

feat: health check on nginx wrapper

Fela Maslen %!s(int64=5) %!d(string=hai) anos
pai
achega
48c1ad9e0f
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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;
     }