Compare commits

...

1 Commits

Author SHA1 Message Date
ce7e2bc75a register fix 2 2023-07-05 23:37:55 +02:00

View File

@@ -67,7 +67,7 @@ func (s *Service) GetFullAddr() string {
func (s *Service) Register() error {
def := &consul.AgentServiceRegistration{
ID: s.GetID(),
Kind: consul.ServiceKindConnectProxy,
// Kind: consul.ServiceKindConnectProxy,
Name: s.Name,
Address: s.Address,
Port: s.port,
@@ -77,9 +77,9 @@ func (s *Service) Register() error {
// Port: s.port,
},
},
Proxy: &consul.AgentServiceConnectProxyConfig{
DestinationServiceName: s.Name + "dupa",
},
// Proxy: &consul.AgentServiceConnectProxyConfig{
// DestinationServiceName: s.Name + "dupa",
// },
Check: &consul.AgentServiceCheck{
TTL: s.ttl.String(),
Status: "passing",