From c28aad31a16923d1a620197487bab33291406caf Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 14 Oct 2023 08:41:09 -0600 Subject: [PATCH] Disable viewing any directories that start with a period .git was added a while ago but all hidden directories should also be blocked --- ubuntu/resources/nginx/fusionpbx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ubuntu/resources/nginx/fusionpbx b/ubuntu/resources/nginx/fusionpbx index f602bcf..baf3ded 100755 --- a/ubuntu/resources/nginx/fusionpbx +++ b/ubuntu/resources/nginx/fusionpbx @@ -44,6 +44,12 @@ server { location ~ /.git/ { deny all; } + location ~ /\.lua { + deny all; + } + location ~ /\. { + deny all; + } } server {