pref: update HostRegexp

This commit is contained in:
thehrz 2024-05-25 13:17:10 +08:00
parent a3a9a07387
commit 9190316680
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855

View File

@ -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