From e14bccfc8df72a6288749bcdf3bd26b0fadb2de3 Mon Sep 17 00:00:00 2001 From: Dominic Grimm Date: Wed, 8 Mar 2023 16:40:03 +0100 Subject: [PATCH] Create robots.txt rule --- config/nginx/nginx.conf | 5 +++++ frontend/index.html | 2 ++ 2 files changed, 7 insertions(+) diff --git a/config/nginx/nginx.conf b/config/nginx/nginx.conf index 084fd25..6214bca 100644 --- a/config/nginx/nginx.conf +++ b/config/nginx/nginx.conf @@ -25,6 +25,11 @@ http { server { listen 80; + location = /robots.txt { + add_header Content-Type text/plain; + return 200 "User-agent: *\nDisallow: /\n"; + } + location / { proxy_pass http://frontend/; } diff --git a/frontend/index.html b/frontend/index.html index 6e4ca9a..fec854b 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,6 +2,8 @@ + +