Compare commits

...

3 Commits

Author SHA1 Message Date
3fc1191f6e register fix 2 2023-07-08 02:22:28 +02:00
52793ac244 register fix 2 2023-07-06 23:02:05 +02:00
f8a1ae841d register fix 2 2023-07-06 21:49:12 +02:00

View File

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