traefik v3

This commit is contained in:
2024-08-16 16:15:24 +02:00
parent a2542d8fea
commit f4b0bc5a6c
7 changed files with 38 additions and 243 deletions

View File

@ -0,0 +1,17 @@
http:
middlewares:
hsts:
headers:
stsincludesubdomains: true
stspreload: true
stsseconds: 31536000 # 1 an
nextcloud-redirectregex1:
redirectregex:
permanent: true
regex: https?://([^/]*)/.well-known/(card|cal)dav
replacement: https://${1}/remote.php/dav/
nextcloud-redirectregex2:
redirectregex:
permanent: true
regex: https?://([^/]*)(/.well-known[^#]*)
replacement: https://${1}/index.php${2}