From 9190316680e61c449b8ef7a466c3204906df172e Mon Sep 17 00:00:00 2001 From: thehrz Date: Sat, 25 May 2024 13:17:10 +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 2f19e7d..3a52696 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: restart: always labels: - traefik.enable=true - - traefik.http.routers.thehrz-nginx.rule=Host(`(www\.)?thehrz\.net`) + - traefik.http.routers.thehrz-nginx.rule=HostRegexp(`^(www\.)?thehrz\.net$`) - traefik.http.routers.thehrz-nginx.entrypoints=web,websecure - traefik.http.routers.thehrz-nginx.tls.certresolver=letsencrypt - traefik.http.routers.thehrz-nginx.middlewares=CORS@file