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; }