🗑️ Remove HTTP provision to consul

This commit is contained in:
LittleSheep 2024-06-19 20:48:23 +08:00
parent d2fdb5a72b
commit 5a3c6fcada
4 changed files with 1 additions and 7 deletions

2
.idea/workspace.xml generated
View File

@ -7,7 +7,7 @@
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":sparkles: Consul registration"> <list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":sparkles: Consul registration">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pkg/internal/gap/server.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/gap/server.go" afterDir="false" /> <change beforePath="$PROJECT_DIR$/pkg/internal/gap/server.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/gap/server.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pkg/internal/server/startup.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/server/server.go" afterDir="false" /> <change beforePath="$PROJECT_DIR$/pkg/internal/server/server.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/server/server.go" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pkg/internal/server/well_known_api.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/server/well_known_api.go" afterDir="false" /> <change beforePath="$PROJECT_DIR$/pkg/internal/server/well_known_api.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/server/well_known_api.go" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />

View File

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

View File

@ -65,7 +65,6 @@ func NewServer() {
A.Get("/.well-known", getMetadata) A.Get("/.well-known", getMetadata)
A.Get("/.well-known/openid-configuration", getOidcConfiguration) A.Get("/.well-known/openid-configuration", getOidcConfiguration)
A.Get("/.well-known/status", getStatus)
api := A.Group("/api").Name("API") api := A.Group("/api").Name("API")
{ {

View File

@ -32,7 +32,3 @@ func getOidcConfiguration(c *fiber.Ctx) error {
"token_endpoint_auth_signing_alg_values_supported": []string{"HS512"}, "token_endpoint_auth_signing_alg_values_supported": []string{"HS512"},
}) })
} }
func getStatus(c *fiber.Ctx) error {
return c.SendStatus(fiber.StatusOK)
}