From 7f8f7b0ed74af4fad34b590ec6a83dec49baf81c Mon Sep 17 00:00:00 2001 From: thehrz Date: Sat, 25 May 2024 13:42:50 +0800 Subject: [PATCH] pref: update HostRegexp --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index d204a2b..07e79de 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: restart: always labels: - traefik.enable=true - - traefik.http.routers.hfbz-nginx.rule=Host(`xn--fiqa592br0dm3gfp6c.com`, `www.xn--fiqa592br0dm3gfp6c.com`) + - traefik.http.routers.hfbz-nginx.rule=HostRegexp(`^(www\.)?xn--fiqa592br0dm3gfp6c\.com$`) - traefik.http.routers.hfbz-nginx.entrypoints=web,websecure - traefik.http.routers.hfbz-nginx.tls.certresolver=letsencrypt networks: