Skip to content

Commit

Permalink
chore(nextcloud): move enabledPreviewProviders to default config
Browse files Browse the repository at this point in the history
Signed-off-by: WrenIX <[email protected]>
  • Loading branch information
wrenix committed Nov 11, 2024
1 parent 3a9310e commit 1097e47
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
8 changes: 0 additions & 8 deletions charts/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
<?php
$CONFIG = array(
'enabledPreviewProviders' => array(
0 => 'OC\\Preview\\Imaginary',
1 => 'OC\\Preview\\ImaginaryPDF',
);
imaginary:
enabled: true
Expand Down
19 changes: 19 additions & 0 deletions charts/nextcloud/files/defaultConfigs/imaginary.config.php.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?php
$CONFIG = array (
'preview_imaginary_url' => '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',
),
);
8 changes: 0 additions & 8 deletions charts/nextcloud/test-values/imaginary.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
nextcloud:
defaultConfigs:
imaginary.config.php: true
configs:
previews.config.php: |-
<?php
$CONFIG = array(
'enabledPreviewProviders' => array(
0 => 'OC\\Preview\\Imaginary',
1 => 'OC\\Preview\\ImaginaryPDF',
);

imaginary:
enabled: true

0 comments on commit 1097e47

Please sign in to comment.