register fix 2
This commit is contained in:
parent
9d424742d6
commit
f8a1ae841d
@ -72,14 +72,14 @@ func (s *Service) Register() error {
|
|||||||
Address: s.Address,
|
Address: s.Address,
|
||||||
Port: s.port,
|
Port: s.port,
|
||||||
Tags: s.getTags(),
|
Tags: s.getTags(),
|
||||||
Connect: &consul.AgentServiceConnect{
|
// Connect: &consul.AgentServiceConnect{
|
||||||
SidecarService: &consul.AgentServiceRegistration{
|
// SidecarService: &consul.AgentServiceRegistration{
|
||||||
// Port: s.port,
|
// Port: s.port,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
Proxy: &consul.AgentServiceConnectProxyConfig{
|
// Proxy: &consul.AgentServiceConnectProxyConfig{
|
||||||
DestinationServiceName: s.Name,
|
// DestinationServiceName: s.Name,
|
||||||
},
|
// },
|
||||||
Check: &consul.AgentServiceCheck{
|
Check: &consul.AgentServiceCheck{
|
||||||
TTL: s.ttl.String(),
|
TTL: s.ttl.String(),
|
||||||
Status: "passing",
|
Status: "passing",
|
||||||
|
Loading…
Reference in New Issue
Block a user