nginx tweaks

This commit is contained in:
robert dennis
2026-10-06 20:11:59 -04:00
parent 7db75f2e4a
commit dd1f20fc0a
4 changed files with 29 additions and 8 deletions
+5
View File
@@ -95,6 +95,11 @@ if ! grep -qF 'location ^~ /assets/extensions/' /etc/nginx/http.d/panel.conf; th
deny all;
}
location ~ \.m?js$ {
add_header X-Content-Type-Options nosniff always;
try_files $uri =404;
}
try_files $uri =404;
}
EOF