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