diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2023-03-26 14:20:06 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2023-03-26 14:20:06 +0200 |
commit | 666e4c6e52deeb3fbb0cbf2055afb26fa7c28e5f (patch) | |
tree | aa9cfa41863d934805cc58efe29b564e49b2e9d1 | |
parent | 6db5440eebbd418d84428d360e17b52273f4d1d8 (diff) |
Nextcloud: Set ‘X-Robots-Tag: noindex, nofollow’.
Per upstream recommendation at https://cloud.fripost.org/settings/admin/overview .
-rw-r--r-- | roles/nextcloud/files/etc/nginx/sites-available/nextcloud | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/nextcloud/files/etc/nginx/sites-available/nextcloud b/roles/nextcloud/files/etc/nginx/sites-available/nextcloud index 1bab6fd..e8820ca 100644 --- a/roles/nextcloud/files/etc/nginx/sites-available/nextcloud +++ b/roles/nextcloud/files/etc/nginx/sites-available/nextcloud @@ -6,41 +6,41 @@ server { include /etc/lacme/nginx.conf; access_log /var/log/nginx/cloud.access.log; error_log /var/log/nginx/cloud.error.log info; location / { return 301 https://$host$request_uri; } } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name cloud.fripost.org; root /usr/local/share/nextcloud; include snippets/headers.conf; - add_header X-Robots-Tag none; + add_header X-Robots-Tag "noindex, nofollow"; add_header X-Download-Options noopen; add_header X-Permitted-Cross-Domain-Policies none; include snippets/ssl.conf; ssl_certificate ssl/cloud.fripost.org.pem; ssl_certificate_key ssl/cloud.fripost.org.key; include snippets/cloud.fripost.org.hpkp-hdr; location = /robots.txt { allow all; log_not_found off; access_log off; } access_log /var/log/nginx/cloud.access.log; error_log /var/log/nginx/cloud.error.log info; location = /.well-known/carddav { return 301 /remote.php/dav; } location = /.well-known/caldav { return 301 /remote.php/dav; } location ^~ /.well-known/ { return 301 /index.php$request_uri; } |