pref: update host regexp

This commit is contained in:
thehrz 2024-05-25 12:16:19 +08:00
parent e92354387b
commit 535da54284
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855

View File

@ -12,7 +12,7 @@ services:
restart: always restart: always
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.thehrz-nginx.rule=Host(`thehrz.net`, `www.thehrz.net`) - traefik.http.routers.thehrz-nginx.rule=Host(`(www\.)?thehrz\.net`)
- traefik.http.routers.thehrz-nginx.entrypoints=web,websecure - traefik.http.routers.thehrz-nginx.entrypoints=web,websecure
- traefik.http.routers.thehrz-nginx.tls.certresolver=letsencrypt - traefik.http.routers.thehrz-nginx.tls.certresolver=letsencrypt
- traefik.http.routers.thehrz-nginx.middlewares=CORS@file - traefik.http.routers.thehrz-nginx.middlewares=CORS@file