From 08aad1ca8cd55170e81d1453cd51bc9f8262f92c Mon Sep 17 00:00:00 2001 From: Thomas Blarre Date: Mon, 11 Nov 2024 23:09:08 +0000 Subject: [PATCH] Added php configs as per the doc --- .../templates/nextcloud-main-chart.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) 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