Skip to content

Commit

Permalink
fix(domains): change traefik domains rule to add route
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos committed Dec 13, 2023
1 parent 0921ac7 commit cfba939
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/contrib/domains/traefik/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ def get_traefik_config(self):
("/service", self.service),
(
"/rule",
"HostRegexp(`DOMAIN_NAME`, `{subdomain:.+}.DOMAIN_NAME`)".replace(
"DOMAIN_NAME", domain
),
f"Host(`{domain}`,`www.{domain}`)"
# "HostRegexp(`DOMAIN_NAME`, `{subdomain:.+}.DOMAIN_NAME`)".replace(
# "DOMAIN_NAME", domain
# ),
),
("/tls/domains/0/main", domain),
("/tls/domains/0/sans/0", "*." + domain),
# ("/tls/domains/0/main", domain),
# ("/tls/domains/0/sans/0", "*." + domain),
)

return list(map(lambda x: (prefix + x[0], x[1]), configs))
Expand Down

0 comments on commit cfba939

Please sign in to comment.