ваше сообщение коммита

This commit is contained in:
2025-07-29 18:07:21 +03:00
parent ce42899afc
commit 0f2270a08a
58 changed files with 5367 additions and 5931 deletions

View File

@@ -6,9 +6,10 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Основной сервер для легитимных доменов
server {
listen 80;
server_name localhost;
server_name hb3-accelerator.com www.hb3-accelerator.com localhost;
# API прокси (точное совпадение для /api/)
location /api/ {
@@ -32,4 +33,16 @@ http {
proxy_set_header X-Forwarded-Port $server_port;
}
}
# Сервер по умолчанию для блокировки подозрительных доменов
server {
listen 80 default_server;
server_name _;
# Возвращаем 444 (Connection Closed Without Response)
return 444;
# Логируем попытки доступа к подозрительным доменам
access_log /var/log/nginx/suspicious_domains.log;
}
}