Skip to content

Commit 76fb0a4

Browse files
feat: more effectively blocking site scanners
1 parent 41821c9 commit 76fb0a4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ server {
4848
try_files /index.html =404;
4949
}
5050

51-
location ~ ^/(background|user/auth|user/login|vm-admin|twitch-bot|imdb-search) {
52-
root /usr/share/nginx/html;
53-
try_files $uri $uri/ /index.html =404;
54-
}
55-
5651
location / {
5752
root /usr/share/nginx/html;
5853
try_files $uri $uri/ =404;
@@ -96,6 +91,12 @@ server {
9691
proxy_set_header X-Forwarded-Port $server_port;
9792
}
9893

94+
# Angular pages
95+
location ~ ^/(background|user/auth|user/login|vm-admin|twitch-bot|imdb-search) {
96+
root /usr/share/nginx/html;
97+
try_files $uri $uri/ /index.html =404;
98+
}
99+
99100
# Verification for our SSL certificate with Let's Encrypt
100101
location /.well-known {
101102
root /usr/share/nginx/html;

0 commit comments

Comments
 (0)