Compare commits

..

1 Commits

Author SHA1 Message Date
f8a1ae841d register fix 2 2023-07-06 21:49:12 +02:00

View File

@@ -72,14 +72,14 @@ func (s *Service) Register() error {
Address: s.Address,
Port: s.port,
Tags: s.getTags(),
Connect: &consul.AgentServiceConnect{
SidecarService: &consul.AgentServiceRegistration{
// Port: s.port,
},
},
Proxy: &consul.AgentServiceConnectProxyConfig{
DestinationServiceName: s.Name,
},
// Connect: &consul.AgentServiceConnect{
// SidecarService: &consul.AgentServiceRegistration{
// Port: s.port,
// },
// },
// Proxy: &consul.AgentServiceConnectProxyConfig{
// DestinationServiceName: s.Name,
// },
Check: &consul.AgentServiceCheck{
TTL: s.ttl.String(),
Status: "passing",