Browse Source

deny .git

master
Christoph Haas 10 months ago
parent
commit
b578e567ac
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      nginx/sites/default.conf

+ 4
- 0
nginx/sites/default.conf View File

@@ -26,6 +26,10 @@ server {
deny all;
}

location ~ /\.git {
deny all;
}

location /.well-known/acme-challenge/ {
root /var/www/letsencrypt/;
log_not_found off;

Loading…
Cancel
Save