♻️ Update status check api

This commit is contained in:
2024-06-17 22:23:41 +08:00
parent 9c3b42f078
commit d2fdb5a72b
4 changed files with 8 additions and 52 deletions

View File

@ -30,7 +30,7 @@ func Register() error {
registration.Port = port
registration.Check = &api.AgentServiceCheck{
GRPC: fmt.Sprintf("%s:%s", outboundIp, grpcBind[1]),
HTTP: fmt.Sprintf("%s:%s/.well-known", outboundIp, httpBind[1]),
HTTP: fmt.Sprintf("http://%s:%s/.well-known/status", outboundIp, httpBind[1]),
Timeout: "5s",
Interval: "1m",
DeregisterCriticalServiceAfter: "3m",