🗑️ Remove HTTP provision to consul
This commit is contained in:
@ -30,7 +30,6 @@ func Register() error {
|
||||
registration.Port = port
|
||||
registration.Check = &api.AgentServiceCheck{
|
||||
GRPC: fmt.Sprintf("%s:%s", outboundIp, grpcBind[1]),
|
||||
HTTP: fmt.Sprintf("http://%s:%s/.well-known/status", outboundIp, httpBind[1]),
|
||||
Timeout: "5s",
|
||||
Interval: "1m",
|
||||
DeregisterCriticalServiceAfter: "3m",
|
||||
|
@ -65,7 +65,6 @@ func NewServer() {
|
||||
|
||||
A.Get("/.well-known", getMetadata)
|
||||
A.Get("/.well-known/openid-configuration", getOidcConfiguration)
|
||||
A.Get("/.well-known/status", getStatus)
|
||||
|
||||
api := A.Group("/api").Name("API")
|
||||
{
|
||||
|
@ -32,7 +32,3 @@ func getOidcConfiguration(c *fiber.Ctx) error {
|
||||
"token_endpoint_auth_signing_alg_values_supported": []string{"HS512"},
|
||||
})
|
||||
}
|
||||
|
||||
func getStatus(c *fiber.Ctx) error {
|
||||
return c.SendStatus(fiber.StatusOK)
|
||||
}
|
||||
|
Reference in New Issue
Block a user