diff --git a/machines/nextcloud/configuration.nix b/machines/nextcloud/configuration.nix index 104b283..28ce90e 100644 --- a/machines/nextcloud/configuration.nix +++ b/machines/nextcloud/configuration.nix @@ -21,13 +21,19 @@ with lib; ../modules/autoupdate.nix ]; - environment.etc."nextcloud-admin-pass".text = "hXz5vspPsFPY"; services.nextcloud = { enable = true; package = pkgs.nextcloud30; - hostName = "10.0.0.11"; - #config.adminpassFile = config.sops.secrets.nextcloudAdminPass.path; - config.adminpassFile = "/etc/nextcloud-admin-pass"; #user=root + hostName = "cloud.malobeo.org"; + config.adminpassFile = config.sops.secrets.nextcloudAdminPass.path; + #https = true; #disable for testing + database.createLocally = true; + config.dbtype = pgsql; + configureRedis = true; + caching = { + redis = true; + apcu = true; + }; extraAppsEnable = true; extraApps = { inherit (config.services.nextcloud.package.packages.apps) contacts calendar; @@ -37,6 +43,9 @@ with lib; license = "agpl3Plus"; }; }; + settings = { + trusted_domains = ["10.0.0.13"]; + }; }; networking.firewall.allowedTCPPorts = [ 80 443 ];