From d863d8c53c7c63e3d09539cdce044709230ca12e Mon Sep 17 00:00:00 2001 From: thehrz Date: Sat, 25 May 2024 13:37:11 +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 659e1a5..a96f09e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: restart: always labels: - traefik.enable=true - - traefik.http.routers.19yuke2-frontend.rule=Host(`19yuke2.cn`, `www.19yuke2.cn`) + - traefik.http.routers.19yuke2-frontend.rule=HostRegexp(`^(www\.)?19yuke2\.cn$`) - traefik.http.routers.19yuke2-frontend.entrypoints=web,websecure - traefik.http.routers.19yuke2-frontend.tls.certresolver=letsencrypt - traefik.http.services.19yuke2-frontend.loadbalancer.server.port=80