Skip to content
Snippets Groups Projects
Commit 1eb04622 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

http health check for nginx

parent a8e7e233
No related branches found
No related tags found
No related merge requests found
......@@ -42,11 +42,13 @@ job "nginx" {
service {
port = "nginx"
name = "nginx"
}
check {
name = "alive"
type = "tcp"
interval = "10s"
type = "http"
path = "/nginx_health"
timeout = "2s"
interval = "10s"
}
}
......@@ -59,4 +61,4 @@ job "nginx" {
}
}
}
\ No newline at end of file
}
......@@ -23,5 +23,8 @@ http {
rewrite ^/discovery(/.*) $1 break;
proxy_pass http://$discovery_endpoint:5006$uri;
}
location /nginx-health {
return 200 "healthy\n";
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment