Add X-Robots header to nextcloud

This commit is contained in:
Marko Korhonen 2023-03-23 11:08:41 +02:00
parent bed90cc635
commit f3aff4c4e8
2 changed files with 4 additions and 1 deletions

View file

@ -63,6 +63,9 @@ permanent = true
regex = "https://(.*)/.well-known/(webfinger|nodeinfo)"
replacement = "https://${1}/index.php/.well-known/${2}"
[http.middlewares.nextcloud-security-headers.headers.customResponseHeaders]
X-Robots-Tag = "noindex,nofollow"
[http.middlewares.www2non-www.redirectregex]
permanent = true
regex = "^https?://www\\.(.+)"