From 8fb5356d1a47e5bb90587572b0f310a356def8e5 Mon Sep 17 00:00:00 2001 From: A Holt Date: Wed, 22 Apr 2020 14:55:40 -0400 Subject: [PATCH 1/2] Make http://box/js-menu publicly browsable --- roles/nginx/templates/iiab.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/nginx/templates/iiab.conf.j2 b/roles/nginx/templates/iiab.conf.j2 index d1c01c122..bf7e23443 100644 --- a/roles/nginx/templates/iiab.conf.j2 +++ b/roles/nginx/templates/iiab.conf.j2 @@ -16,3 +16,7 @@ location /modules/ { fancyindex_exact_size off; # Output human-readable file sizes. fancyindex_ignore index.htmlf rachel-index.php; } + +location /js-menu/ { + fancyindex on; # autoindex on; +} From 17e305d1aabb3ba61bf6586fb4dccb45e9f6d385 Mon Sep 17 00:00:00 2001 From: A Holt Date: Sun, 26 Apr 2020 15:45:42 -0400 Subject: [PATCH 2/2] Expose http://box/js-menu except for 2 subdirs that contain code (js, services) --- roles/nginx/templates/iiab.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/nginx/templates/iiab.conf.j2 b/roles/nginx/templates/iiab.conf.j2 index bf7e23443..76b8c0aa0 100644 --- a/roles/nginx/templates/iiab.conf.j2 +++ b/roles/nginx/templates/iiab.conf.j2 @@ -19,4 +19,10 @@ location /modules/ { location /js-menu/ { fancyindex on; # autoindex on; + location /js-menu/menu-files/js/ { + fancyindex off; # autoindex off; + } + location /js-menu/menu-files/services/ { + fancyindex off; # autoindex off; + } }