From 9aef1eb832fb511cd5f1fe0e6ec59c896d037242 Mon Sep 17 00:00:00 2001 From: Denis Dudko <130506837+bediverus@users.noreply.github.com> Date: Mon, 1 Apr 2024 16:10:23 +0600 Subject: [PATCH] adding robots.txt --- nginx/nginx.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 47589a7..3341092 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -2,7 +2,11 @@ server { listen 80; root /usr/share/nginx/html; - + + location /robots.txt { + return 200 "User-agent: *\nDisallow: /\n"; + } + location / { index index.html; }