diff --git a/nginx.default b/nginx.default index 95b3f59..5b91486 100644 --- a/nginx.default +++ b/nginx.default @@ -2,6 +2,16 @@ server { listen 8020; client_max_body_size 30M; + + location = /robots.txt { + try_files /robots.txt @robots.txt; + } + + location @robots.txt { + add_header Content-Type text/plain; + return 200 "User-agent: *\nDisallow: /\n"; + } + location /static/ { autoindex on; alias /opt/app/staticfiles/;