Compare commits

...

3 Commits

Author SHA1 Message Date
98d85810f3 register fix 2 2023-07-08 13:02:13 +02:00
3fc1191f6e register fix 2 2023-07-08 02:22:28 +02:00
52793ac244 register fix 2 2023-07-06 23:02:05 +02:00

View File

@@ -61,7 +61,7 @@ func (s *Service) GetID() string {
} }
func (s *Service) GetFullAddr() string { func (s *Service) GetFullAddr() string {
return fmt.Sprintf("http://%s:%d/", s.domain, s.port) return fmt.Sprintf("https://%s:%d/", s.domain, s.port)
} }
func (s *Service) Register() error { func (s *Service) Register() error {
@@ -72,11 +72,12 @@ 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{
Native: true,
// SidecarService: &consul.AgentServiceRegistration{ // SidecarService: &consul.AgentServiceRegistration{
// Port: s.port, // Port: s.port,
// }, // },
// }, },
// Proxy: &consul.AgentServiceConnectProxyConfig{ // Proxy: &consul.AgentServiceConnectProxyConfig{
// DestinationServiceName: s.Name, // DestinationServiceName: s.Name,
// }, // },