Skip to content

Conversation

@jkribeiro
Copy link
Collaborator

Would be worth to have a new config excludes to list files to not be symlinked or stubbed in the web folder. Currently you have control over the asset file types list, you can include or alter the list, but you can't exclude a file or folder.

"extra": { "drupal-paranoia": { "app-dir": "app", "web-dir": "web", "excludes": [ "core/install.php", "sites/simpletest" ] }, "..." }

In this example, install.php and sites/simpletest will not be symlinked to web folder, it means that will not be available over the internet.

As mentioned in the README:

Consider to exclude `/install.php` from your site. There are security concerns when this URL is publicly available, it can be used to create a list of contributed modules existing on the site. You can exclude it via plugin as described above or via `.htaccess` rules. - [DO#2840973: Install system should not produce PHP errors](https://www.drupal.org/node/2840973) - https://www.drupalxray.com 
…ed or stubbed in web folder. Performance enhancement: Added sites public files path to exclude list when searching for asset files.
@jkribeiro jkribeiro merged commit 15027ee into 1.x Jan 24, 2019
@jkribeiro jkribeiro deleted the excludes branch January 24, 2019 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants