Skip to content

Commit

Permalink
. files security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xb4lint committed May 22, 2019
1 parent ea3afc2 commit 1e88625
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion public/templates/conf/nginxconfig.io/general.conf.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@
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;<!--
Expand Down

0 comments on commit 1e88625

Please sign in to comment.