Skip to content

Commit 1912a0c

Browse files
feat: more effectively blocking site scanners
1 parent 8401180 commit 1912a0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ server {
5151
}
5252

5353
location ~ ^/(background|user/auth|user/login(?:/desktop)?|vm-admin|twitch-bot(?:/config)?|imdb-search) {
54-
return 404;
54+
root /usr/share/nginx/html;
55+
# First attempt to serve request as file, then
56+
# as directory, then redirect to index(angular) if no file found.
57+
try_files $uri $uri/ /index.html;
5558
}
5659

5760
location / {

0 commit comments

Comments
 (0)