From 8b850ce5c2585bfa4ace98f59a53010c37c23819 Mon Sep 17 00:00:00 2001 From: ACDH-CH <105779568+acdh-ch@users.noreply.github.com> Date: Fri, 3 May 2024 12:23:10 +0200 Subject: [PATCH] Update nginx.default --- nginx.default | 10 ++++++++++ 1 file changed, 10 insertions(+) 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/;