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