diff --git a/templates/nginx.conf b/templates/nginx.conf index fc84323..329d054 100644 --- a/templates/nginx.conf +++ b/templates/nginx.conf @@ -162,6 +162,10 @@ ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECD proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } + location = /robots.txt { + add_header Content-Type text/plain; + return 200 "User-agent: *\nDisallow: /\n"; + } } # Anonymize IP addresses