Skip to content

Commit 627edfa

Browse files
feat: more effectively blocking site scanners
1 parent 37793df commit 627edfa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nginx/filesystem/etc/nginx/conf.d/nginx.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ server {
5050
try_files $uri $uri/ /index.html;
5151
}
5252

53-
location / {
54-
return 404;
55-
}
56-
5753
location /api/v1 {
5854
proxy_pass http://${IP_ADDRESS}:8081;
5955
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -123,6 +119,10 @@ server {
123119
location /angular {
124120
return 404;
125121
}
122+
123+
location / {
124+
return 404;
125+
}
126126
}
127127

128128
server {

0 commit comments

Comments
 (0)