nextcloud: install preview generators in postStart

This commit is contained in:
xeruf 2023-03-29 22:30:26 +01:00
parent 358f1e6875
commit 0b5e5d2c17
1 changed files with 21 additions and 13 deletions

View File

@ -22,19 +22,25 @@ data:
'default_locale' => 'en-gb',
'lost_password_link' => 'https://dashboard.${domain}/web/recovery',
'enable_previews' => true,
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'enabledPreviewProviders' =>
array (
'OC\Preview\Movie',
'OC\Preview\PNG',
'OC\Preview\JPEG',
'OC\Preview\GIF',
'OC\Preview\BMP',
'OC\Preview\XBitmap',
'OC\Preview\MP3',
'OC\Preview\MP4',
'OC\Preview\TXT',
'OC\Preview\MarkDown',
'OC\Preview\PDF'
0 => 'OC\\Preview\\TXT',
1 => 'OC\\Preview\\MarkDown',
2 => 'OC\\Preview\\OpenDocument',
3 => 'OC\\Preview\\PDF',
4 => 'OC\\Preview\\MSOffice2003',
5 => 'OC\\Preview\\MSOfficeDoc',
6 => 'OC\\Preview\\Image',
7 => 'OC\\Preview\\Photoshop',
8 => 'OC\\Preview\\TIFF',
9 => 'OC\\Preview\\SVG',
10 => 'OC\\Preview\\Font',
11 => 'OC\\Preview\\MP3',
12 => 'OC\\Preview\\Movie',
13 => 'OC\\Preview\\MKV',
14 => 'OC\\Preview\\MP4',
15 => 'OC\\Preview\\AVI',
)
);
#extraVolumes:
@ -49,7 +55,7 @@ data:
postStartCommand:
- '/bin/bash'
- '-c'
- 'echo hiho | tee /tmp/test'
- 'apt update && apt install ffmpeg imagemagick ghostscript libreoffice libreoffice-l10n-de libreoffice-help-de'
#- 'echo hiho && /bin/bash /var/local/setup-apps.sh'
apps:
# Basics
@ -86,6 +92,8 @@ data:
enabled: true
- name: metadata
enabled: true
- name: previewgenerator
enabled: true
# TODO handy but incompatible
#- name: extract
# enabled: false
@ -109,7 +117,7 @@ data:
#- name: theming
# enabled: true
- name: apporder
enabled: true
enabled: false
- name: side_menu
enabled: true
- name: breezedark