[default.conf] Use X-Robots-Tag, not robots.txt

This commit is contained in:
adam schaefers 2022-12-29 12:27:58 -07:00
parent 7dbb4b372f
commit 12d9f5e739

View File

@ -85,10 +85,7 @@ server {
}
# disable Google bots from indexing this site
location = /robots.txt {
add_header Content-Type text/plain;
return 200 "User-agent: *\nDisallow: /\n";
}
add_header X-Robots-Tag "noindex";
location ~ /api/v[0-9]+/(users/)?websocket$ {
proxy_set_header Upgrade $http_upgrade;