add: все для робот.тхт

This commit is contained in:
2026-01-29 21:33:24 +03:00
parent 52e960a1d0
commit a95d677bb7
2 changed files with 14 additions and 0 deletions

View File

@@ -87,6 +87,14 @@ http {
expires 30d;
}
# Robots.txt
location = /robots.txt {
alias /app/public/static_collected/robots.txt;
access_log off;
log_not_found off;
expires 30d;
}
location / {
# --- ЗАЩИТА ОТ БРУТФОРСА ---
# Применяем зону 'one', разрешаем "всплеск" до 10 запросов.

6
public/static/robots.txt Normal file
View File

@@ -0,0 +1,6 @@
User-agent: *
Allow: /
Disallow: /adm-in/
Host: https://typograph.cube2.ru
Sitemap: https://typograph.cube2.ru/sitemap.xml