Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c244db6ea | |||
| 3394040a8c | |||
| bc439fd4d2 | |||
| 16cfa5fead | |||
| 044c32e783 |
@@ -74,7 +74,7 @@ func (s *Service) Register() error {
|
||||
ID: s.GetID(),
|
||||
// Kind: consul.ServiceKindConnectProxy,
|
||||
Name: s.Name,
|
||||
Address: s.domain,
|
||||
Address: s.Address,
|
||||
Port: s.port,
|
||||
Tags: s.getTags(),
|
||||
// Connect: &consul.AgentServiceConnect{Native: true},
|
||||
@@ -178,7 +178,7 @@ func (s *Service) healthCheck() (bool, error) {
|
||||
func (s *Service) getTags() []string {
|
||||
tags := []string{
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers." + s.Name + ".rule=Host(`" + s.domain + "`) && PathPrefix(`" + s.pathPrefix + "`)",
|
||||
"traefik.http.routers." + s.Name + ".rule=PathPrefix(`" + s.pathPrefix + "`)",
|
||||
// "traefik.http.routers." + s.Name + ".rule=Host(`" + s.domain + "`)",
|
||||
"traefik.http.routers." + s.Name + ".entryPoints=https",
|
||||
// "traefik.http.routers." + s.Name + ".tls=true",
|
||||
|
||||
Reference in New Issue
Block a user