[nextcloud] enable postgress, redis, change domain

This commit is contained in:
ahtlon
2025-01-18 18:43:30 +01:00
committed by kalipso
parent fab1b18263
commit 9b4cd02e53

View File

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