[nextcloud] enable postgress, redis, change domain
This commit is contained in:
@@ -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 ];
|
||||
|
||||
Reference in New Issue
Block a user