diff --git a/app/contrib/domains/traefik/models.py b/app/contrib/domains/traefik/models.py index adc2f1b1..1e3faede 100644 --- a/app/contrib/domains/traefik/models.py +++ b/app/contrib/domains/traefik/models.py @@ -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))