add .git to denied folders in nginx

This commit is contained in:
slawkens 2023-02-28 19:05:34 +01:00
parent 2ac8ed7411
commit c03b041f40

View File

@ -13,6 +13,11 @@ server {
deny all;
}
location ~ /\.git {
return 404;
deny all;
}
location / {
try_files $uri $uri/ /index.php;
}