diff --git a/modules/services/server/nextcloud.nix b/modules/services/server/nextcloud.nix index 0b33af0..a53f59f 100644 --- a/modules/services/server/nextcloud.nix +++ b/modules/services/server/nextcloud.nix @@ -1,11 +1,12 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: { services.nextcloud = { enable = true; hostName = "cloud2.kabtop.de"; https = true; package = pkgs.nextcloud25; + enableBrokenCiphersForSSE = false; config = { dbtype = "pgsql"; dbuser = "nextcloud"; @@ -20,13 +21,19 @@ phpOptions = { "opcache.interned_strings_buffer" = "16"; }; - #phpExtraExtensions = ; - #extraApps = with pkgs.nextcloud25Packages.apps; { - # inherit mail news contacts; - #}; #autoUpdateApps.enable = true; }; + services.nginx = { + enable = true; + virtualHosts = { + "${config.services.nextcloud.hostName}" = { + enableACME = true; + forceSSL = true; + }; + }; + }; + age.secrets."services/nextcloud/dbpassFile" = { file = ../../../secrets/services/nextcloud/dbpassFile.age; owner = "nextcloud";