Fix nextcloud redirects

This commit is contained in:
Marko Korhonen 2023-03-23 11:26:43 +02:00
parent ebbb6e5cdd
commit 61cdce3ac6
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -60,8 +60,8 @@ replacement = "https://cloud.korhonen.cc/remote.php/dav/"
[http.middlewares.nextcloud-redirect-extra.redirectRegex]
permanent = true
regex = "https://korhonen.cc/.well-known/(webfinger|nodeinfo)"
replacement = "https://korhonen.cc/index.php/.well-known/${2}"
regex = "https://cloud.korhonen.cc/.well-known/(.*)"
replacement = "https://cloud.korhonen.cc/index.php/.well-known/${1}"
[http.middlewares.nextcloud-security-headers.headers.customResponseHeaders]
X-Robots-Tag = "noindex,nofollow"