diff --git a/nextcloud-syncthing-argocd-apps/templates/nextcloud-main-chart.yaml b/nextcloud-syncthing-argocd-apps/templates/nextcloud-main-chart.yaml index 81f6935..8ceb36d 100644 --- a/nextcloud-syncthing-argocd-apps/templates/nextcloud-main-chart.yaml +++ b/nextcloud-syncthing-argocd-apps/templates/nextcloud-main-chart.yaml @@ -61,6 +61,35 @@ spec: usernameKey: nc-admin-username passwordKey: nc-admin-password trustedDomains: {{ .Values.nextcloud.trustedDomains }} + nextcloud: + configs: + previews.config.php: |- + true, + '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' + ), + ); + proxy.config.php: |- + array( + 0 => '127.0.0.1', + 1 => '10.0.0.0/8', + ), + 'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'), + ); # extraInitContainers - might be useful to make sure the LUKS secret is present # nginx: # enabled: true