From 77e42a8969cfa86188aba12851cec5cb104ef8a4 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sat, 2 Sep 2023 13:29:21 -0600 Subject: [PATCH] nextcloud adjustments, works! --- configuration.org | 24 +++++++++++++++++++++--- nginx.nix | 2 +- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/configuration.org b/configuration.org index 34311b2..ce55a3a 100755 --- a/configuration.org +++ b/configuration.org @@ -903,9 +903,29 @@ services = { dbtableprefix = "oc_"; dbname = "nextcloud"; trustedProxies = [ "nginx" ]; - extraTrustedDomains = [ "danilo-reyes.com" ]; + extraTrustedDomains = [ "cloud.rotehaare.art" "danilo-reyes.com" ]; + }; + phpOptions = { + catch_workers_output = "yes"; + display_errors = "stderr"; + error_reporting = "E_ALL & ~E_DEPRECATED & ~E_STRICT"; + expose_php = "Off"; + "opcache.enable_cli" = "1"; + "opcache.fast_shutdown" = "1"; + "opcache.interned_strings_buffer" = "16"; + "opcache.jit" = "1255"; + "opcache.jit_buffer_size" = "128M"; + "opcache.max_accelerated_files" = "10000"; + "opcache.memory_consumption" = "128"; + "opcache.revalidate_freq" = "1"; + "opcache.save_comments" = "1"; + "opcache.validate_timestamps" = "0"; + "openssl.cafile" = "/etc/ssl/certs/ca-certificates.crt"; + short_open_tag = "Off"; }; extraOptions = { + mail_smtpmode = "sendmail"; + mail_sendmailmode = "pipe"; "installed" = true; "memories.exiftool" = "/etc/profiles/per-user/nextcloud/bin/exiftool"; enabledPreviewProviders = [ @@ -917,8 +937,6 @@ services = { "OC\\Preview\\AVI" "OC\\Preview\\Movie" ]; - opcache.jit = 1255; - opcache.jit_buffer_size = "128M"; }; phpExtraExtensions = all: [ all.pdlib all.bz2 ]; }; diff --git a/nginx.nix b/nginx.nix index 3c33922..7875cd9 100755 --- a/nginx.nix +++ b/nginx.nix @@ -176,7 +176,7 @@ in { forceSSL = true; enableACME = true; http2 = true; - serverAliases = [ "danilo-reyes.com" "cloud.servidos.lat" ]; + serverAliases = [ "cloud.rotehaare.art" "danilo-reyes.com" ]; }; }; };