From f574f4f7b99922544540da279e4e37ecb3e65b58 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Mon, 28 Aug 2023 17:21:53 -0700 Subject: [PATCH] added preview generation settings --- hosts/Alaska/modules/nextcloud.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/Alaska/modules/nextcloud.nix b/hosts/Alaska/modules/nextcloud.nix index efcf827..c5c5f15 100644 --- a/hosts/Alaska/modules/nextcloud.nix +++ b/hosts/Alaska/modules/nextcloud.nix @@ -5,7 +5,7 @@ enable = true; package = pkgs.nextcloud27; enableBrokenCiphersForSSE = false; - + enableImagemagick = true; nginx.recommendedHttpHeaders = true; https = true; hostName = "files.nickiel.net"; @@ -13,6 +13,16 @@ autoUpdateApps.enable = true; + extraOptions = { + preview_max_x = 2048; + preview_max_y = 2048; + jpeg_quality = 50; + enable_previews = true; + enabledPreviewProviders = [ + "OC\\Preview\\HEIC" + ]; + }; + database.createLocally = false; config = { defaultPhoneRegion = "US";