Browse Source

deny .git

Christoph Haas 3 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 {
26 26
         deny all;
27 27
     }
28 28
 
29
+    location ~ /\.git {
30
+        deny all;
31
+    }
32
+
29 33
     location /.well-known/acme-challenge/ {
30 34
         root /var/www/letsencrypt/;
31 35
         log_not_found off;

Loading…
Cancel
Save