Browse Source

Remove restricts

Bob Mottram 7 years ago
parent
commit
98701b259c
1 changed files with 0 additions and 10 deletions
  1. 0
    10
      src/freedombone-app-edith

+ 0
- 10
src/freedombone-app-edith View File

@@ -339,11 +339,6 @@ function install_edith {
339 339
         echo "    #auth_basic \"${EDITH_LOGIN_TEXT}\";" >> $edith_nginx_site
340 340
         echo '    #auth_basic_user_file /etc/nginx/.edithpasswd;' >> $edith_nginx_site
341 341
         echo '  }' >> $edith_nginx_site
342
-        echo '' >> $edith_nginx_site
343
-        echo '  # Restrict access that is unnecessary anyway' >> $edith_nginx_site
344
-        echo '  location ~ /\.(ht|git) {' >> $edith_nginx_site
345
-        echo '    deny all;' >> $edith_nginx_site
346
-        echo '  }' >> $edith_nginx_site
347 342
         echo '}' >> $edith_nginx_site
348 343
     else
349 344
         echo -n '' > $edith_nginx_site
@@ -380,11 +375,6 @@ function install_edith {
380 375
     echo "    #auth_basic \"${EDITH_LOGIN_TEXT}\";" >> $edith_nginx_site
381 376
     echo '    #auth_basic_user_file /etc/nginx/.edithpasswd;' >> $edith_nginx_site
382 377
     echo '  }' >> $edith_nginx_site
383
-    echo '' >> $edith_nginx_site
384
-    echo '  # Restrict access that is unnecessary anyway' >> $edith_nginx_site
385
-    echo '  location ~ /\.(ht|git) {' >> $edith_nginx_site
386
-    echo '    deny all;' >> $edith_nginx_site
387
-    echo '  }' >> $edith_nginx_site
388 378
     echo '}' >> $edith_nginx_site
389 379
 
390 380
     function_check configure_php