Compare commits

..

3 Commits

Author SHA1 Message Date
30c45b4503 consul https temp fix 2023-07-02 22:38:13 +02:00
49f552bf68 consul register as sidecar_service 2023-07-02 22:30:53 +02:00
6f875cbb94 consul register as sidecar_service 2023-07-02 22:24:55 +02:00

View File

@@ -61,7 +61,7 @@ func (s *Service) GetID() string {
}
func (s *Service) GetFullAddr() string {
return fmt.Sprintf("https://%s:%d/", s.domain, s.port)
return fmt.Sprintf("http://%s:%d/", s.domain, s.port)
}
func (s *Service) Register() error {
@@ -71,6 +71,7 @@ func (s *Service) Register() error {
Address: s.Address,
Port: s.port,
Tags: s.getTags(),
Connect: &consul.AgentServiceConnect{SidecarService: &consul.AgentServiceRegistration{}},
Check: &consul.AgentServiceCheck{
TTL: s.ttl.String(),
Status: "passing",