Add .git and auth.json to nginx sensitive resources

pull/65/head
Clark Winkelmann 2020-04-21 22:02:41 +02:00 committed by GitHub
parent a15b8e736b
commit 533a87d1ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ location / {
# Uncomment the following lines if you are not using a `public` directory
# to prevent sensitive resources from being exposed.
# location ~* ^/(composer\.(json|lock)|config\.php|flarum|storage|vendor) {
# location ~* ^/(\.git|composer\.(json|lock)|auth\.json|config\.php|flarum|storage|vendor) {
# deny all;
# return 404;
# }