From 8ca26cbb43f8ff2b0b5a2c49d8e11a2f4dd54b79 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 18 Feb 2024 22:04:41 +0100 Subject: nginx: self-hosted freq used docs /pub/ --- roles/webserver/files/user_conf.d/memzero.conf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roles/webserver/files/user_conf.d/memzero.conf') diff --git a/roles/webserver/files/user_conf.d/memzero.conf b/roles/webserver/files/user_conf.d/memzero.conf index ed3bd9d..2da3a73 100644 --- a/roles/webserver/files/user_conf.d/memzero.conf +++ b/roles/webserver/files/user_conf.d/memzero.conf @@ -10,6 +10,12 @@ server { include /etc/nginx/inc/ssl.conf; root /www/memzero; + + location /pub/ { + autoindex on; + # https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag + add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; + } } server { -- cgit v1.2.3