You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,28 @@ By the purpose of this plugin, the following files types are __not allowed__ and
135
135
*.theme
136
136
```
137
137
138
+
### Exclude paths
139
+
With the drupal-paranoia option excludes, you can provide paths that should not be symlinked or stubbed to `/web` folder. The plugin provides no excludes by default.
140
+
141
+
```json
142
+
"extra": {
143
+
"drupal-paranoia": {
144
+
"app-dir": "app",
145
+
"web-dir": "web",
146
+
"excludes": [
147
+
"core/install.php",
148
+
"sites/simpletest"
149
+
]
150
+
},
151
+
"..."
152
+
}
153
+
```
154
+
155
+
__NOTE:__ 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.
156
+
You can exclude it via plugin as described above or via `.htaccess` rules.
157
+
-[DO#2840973: Install system should not produce PHP errors](https://www.drupal.org/node/2840973)
158
+
-https://www.drupalxray.com
159
+
138
160
### Web server docroot
139
161
Change the document root config of your web server to point to `/web` folder.
140
162
@@ -181,7 +203,7 @@ class MyClass implements PluginInterface, EventSubscriberInterface
181
203
```
182
204
183
205
## Local development
184
-
Every time you install or update a Drupal package via Composer, the `/web` folder will recreated.
206
+
Every time you install or update a Drupal package via Composer, the `/web` folder will be recreated.
0 commit comments