Services: get Nextcloud configured correctly
This commit is contained in:
parent
74e2a5a5ec
commit
66f9703e96
|
@ -32,6 +32,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
home = cfg.home;
|
home = cfg.home;
|
||||||
hostName = cfg.url;
|
hostName = cfg.url;
|
||||||
|
https = true;
|
||||||
appstoreEnable = true;
|
appstoreEnable = true;
|
||||||
maxUploadSize = "10G";
|
maxUploadSize = "10G";
|
||||||
nginx.recommendedHttpHeaders = true;
|
nginx.recommendedHttpHeaders = true;
|
||||||
|
@ -43,7 +44,7 @@ in
|
||||||
|
|
||||||
# Set default admin password
|
# Set default admin password
|
||||||
config.adminpassFile = "${pkgs.writeText "nextcloud-default-pass" ''
|
config.adminpassFile = "${pkgs.writeText "nextcloud-default-pass" ''
|
||||||
config.${namespace}.secrets.services.defaultPassword;
|
${config.${namespace}.secrets.services.defaultPassword}
|
||||||
''}";
|
''}";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -57,6 +58,11 @@ in
|
||||||
mail_sendmailmode = "pipe";
|
mail_sendmailmode = "pipe";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nginx.virtualHosts."${cfg.url}" = {
|
||||||
|
useACMEHost = lib.${namespace}.getDomainFromURI cfg.url;
|
||||||
|
forceSSL = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
|
|
|
@ -214,7 +214,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nextcloud = {
|
nextcloud = {
|
||||||
enable = false;
|
enable = true;
|
||||||
url = config.${namespace}.secrets.services.nextcloud.url;
|
url = config.${namespace}.secrets.services.nextcloud.url;
|
||||||
home = "${services-root}/nextcloud";
|
home = "${services-root}/nextcloud";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue