[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
];
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 ];