mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-05 22:05:47 -05:00
nginx tweaks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user