1
0
angie-krdsh/site.avail/http-files.krd.sh.conf
2024-03-22 10:24:54 +03:00

31 lines
569 B
Plaintext

server {
server_name files.krd.sh;
include snip.d/listen-https;
include snip.d/ssl-krd.sh;
access_log off;
log_not_found off;
root /var/www/files;
autoindex on;
include snip.d/http-security-headers;
location / {
try_files $uri $uri/ =404;
}
location ~*^/(?:angie)/
~*\.(?:asc|conf|dsc|js|json|pem|sh|sources|txt)$
{
default_type text/plain;
try_files $uri $uri/ =404;
}
include snip.d/deny-dotfiles;
include snip.d/empty-favicon;
include snip.d/robots-txt;
}