Update nginx sample config with location deny for bin/ folder
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 7 Sep 2020 09:51:58 +0000 (05:51 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 7 Sep 2020 09:51:58 +0000 (05:51 -0400)
mods/sample-nginx.config

index 71d3785..b90e1fe 100644 (file)
@@ -141,4 +141,9 @@ server {
   location ~ /\. {
     deny all;
   }
+
+  # deny access to the CLI scripts
+  location ^~ /bin {
+    deny all;
+  }
 }