diff --git a/charts/nextcloud/README.md b/charts/nextcloud/README.md index 5f2f440f..2e2e7740 100644 --- a/charts/nextcloud/README.md +++ b/charts/nextcloud/README.md @@ -522,14 +522,6 @@ We include an optional external preview provider from [h2non/imaginary](https:// nextcloud: defaultConfigs: imaginary.config.php: true - configs: - previews.config.php: |- - array( - 0 => 'OC\\Preview\\Imaginary', - 1 => 'OC\\Preview\\ImaginaryPDF', - ); imaginary: enabled: true diff --git a/charts/nextcloud/files/defaultConfigs/imaginary.config.php.tpl b/charts/nextcloud/files/defaultConfigs/imaginary.config.php.tpl index 95719b15..628851d8 100644 --- a/charts/nextcloud/files/defaultConfigs/imaginary.config.php.tpl +++ b/charts/nextcloud/files/defaultConfigs/imaginary.config.php.tpl @@ -1,4 +1,23 @@ 'http://{{ template "nextcloud.fullname" . }}-imaginary', + 'enable_previews' => true, + 'enabledPreviewProviders' => array ( + 'OC\Preview\Imaginary', + 'OC\Preview\ImaginaryPDF', + /* + defaults: + https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#enabledpreviewproviders + */ + 'OC\Preview\BMP', + // 'OC\Preview\GIF', + // 'OC\Preview\JPEG', + 'OC\Preview\Krita', + 'OC\Preview\MarkDown', + 'OC\Preview\MP3', + 'OC\Preview\OpenDocument', + // 'OC\Preview\PNG', + 'OC\Preview\TXT', + 'OC\Preview\XBitmap', + ), ); diff --git a/charts/nextcloud/test-values/imaginary.yaml b/charts/nextcloud/test-values/imaginary.yaml index a3139969..389a1580 100644 --- a/charts/nextcloud/test-values/imaginary.yaml +++ b/charts/nextcloud/test-values/imaginary.yaml @@ -1,14 +1,6 @@ nextcloud: defaultConfigs: imaginary.config.php: true - configs: - previews.config.php: |- - array( - 0 => 'OC\\Preview\\Imaginary', - 1 => 'OC\\Preview\\ImaginaryPDF', - ); imaginary: enabled: true