. files security fix

fixes #88
changes #50
pull/103/head
Bálint Szekeres 2019-05-22 14:52:24 +02:00
parent ea3afc2fd7
commit 1e88625548
1 changed files with 6 additions and 1 deletions

View File

@ -11,10 +11,15 @@ add_header Content-Security-Policy "{{ data.content_security_policy }}" always;<
add_header Strict-Transport-Security "max-age=31536000{{ isHSTSSubdomains() ? '; includeSubDomains' : '' }}{{ isHSTSPreload() ? '; preload' : '' }}" always;</span>
# . files
location ~ /\.(?!well-known) {
location ^~ /. {
deny all;
}
# .well-known
location ^~ /.well-known/ {
allow all;
}
# favicon.ico
location = /favicon.ico {
log_not_found off;<!--