Skip to content

Commit

Permalink
Merge pull request #69 from mtrajano/dot-exception
Browse files Browse the repository at this point in the history
add exception for files living under .well-known
  • Loading branch information
ingluisjimenez authored Nov 13, 2019
2 parents c454868 + 70922c5 commit 0e5d9eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions container/root/etc/nginx/sites-available/default
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ server {
try_files $uri $uri/ =404;
}

# Protect against accessing hidden files
location ~ /\. {
# Protect against accessing hidden files, except for files living under .well-known
# @see https://www.ietf.org/rfc/rfc5785.txt
location ~ /\.(?!well-known/) {
access_log off;
log_not_found off;
deny all;
Expand Down

0 comments on commit 0e5d9eb

Please sign in to comment.