aboutsummaryrefslogtreecommitdiff
path: root/roles/webserver/files/user_conf.d/memzero.conf
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-02-18 22:04:41 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-02-18 22:04:47 +0100
commit8ca26cbb43f8ff2b0b5a2c49d8e11a2f4dd54b79 (patch)
treedf29d984b55d1e346863f4ad57cfd76f34af8bab /roles/webserver/files/user_conf.d/memzero.conf
parent181545b2cc783165b4387b0d9f31a177ae0af925 (diff)
downloadansible-memzero-8ca26cbb43f8ff2b0b5a2c49d8e11a2f4dd54b79.tar.gz
ansible-memzero-8ca26cbb43f8ff2b0b5a2c49d8e11a2f4dd54b79.zip
nginx: self-hosted freq used docs /pub/
Diffstat (limited to 'roles/webserver/files/user_conf.d/memzero.conf')
-rw-r--r--roles/webserver/files/user_conf.d/memzero.conf6
1 files changed, 6 insertions, 0 deletions
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 {