Skip to content

Commit 37793df

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

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
@@ -44,16 +44,16 @@ server {
4444
#access_log /var/log/nginx/host.access.log main;
4545

4646
location = / {
47-
return 404;
48-
}
49-
50-
location / {
5147
root /usr/share/nginx/html;
5248
# First attempt to serve request as file, then
5349
# as directory, then redirect to index(angular) if no file found.
5450
try_files $uri $uri/ /index.html;
5551
}
5652

53+
location / {
54+
return 404;
55+
}
56+
5757
location /api/v1 {
5858
proxy_pass http://${IP_ADDRESS}:8081;
5959
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

0 commit comments

Comments
 (0)