From ea0e819b631fe7eb55d1b0f9e2a6257f3e645948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= Date: Tue, 26 Aug 2025 17:46:02 -0400 Subject: [PATCH] feat: more effectively blocking site scanners --- nginx/filesystem/etc/nginx/conf.d/nginx.conf | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nginx/filesystem/etc/nginx/conf.d/nginx.conf b/nginx/filesystem/etc/nginx/conf.d/nginx.conf index d1f8e73..e2e0f33 100644 --- a/nginx/filesystem/etc/nginx/conf.d/nginx.conf +++ b/nginx/filesystem/etc/nginx/conf.d/nginx.conf @@ -43,17 +43,13 @@ server { #charset koi8-r; #access_log /var/log/nginx/host.access.log main; - location = / { + location / { root /usr/share/nginx/html; # First attempt to serve request as file, then # as directory, then redirect to index(angular) if no file found. try_files $uri $uri/ /index.html; } - location / { - return 404; - } - location /api/v1 { proxy_pass http://${IP_ADDRESS}:8081; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;