diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-19 13:35:21 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-22 16:09:08 +0200 |
commit | ca3447fcdea878ade24caed4ad300697fc132d08 (patch) | |
tree | 2749ec20587207a007ac35e76d5d1d48712b5606 /config | |
parent | 831d34f084e4c2f6b13303f58e12a9f96eb10a74 (diff) | |
download | nextcloud-server-ca3447fcdea878ade24caed4ad300697fc132d08.tar.gz nextcloud-server-ca3447fcdea878ade24caed4ad300697fc132d08.zip |
Add a configuration switch for enabled preview mimetypes
Diffstat (limited to 'config')
-rwxr-xr-x | config/config.sample.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 879ba9e9d01..3a2f3308e13 100755 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -284,6 +284,29 @@ $CONFIG = array( /* cl parameters for libreoffice / openoffice */ 'preview_office_cl_parameters' => '', +/** + * Only register providers that have been explicitly enabled + * + * The following providers are enabled by default: + * - OC\Preview\Image + * - OC\Preview\MP3 + * - OC\Preview\TXT + * - OC\Preview\MarkDown + * + * The following providers are disabled by default due to performance or privacy concerns: + * - OC\Preview\Office + * - OC\Preview\SVG + * - OC\Preview\Movies + * - OC\Preview\PDF + * - OC\Preview\Tiff + */ +'enabledPreviewProviders' => array( + 'OC\Preview\Image', + 'OC\Preview\MP3', + 'OC\Preview\TXT', + 'OC\Preview\MarkDown' +), + /* whether avatars should be enabled */ 'enable_avatars' => true, |