This commit is contained in:
Hadi
2024-06-08 02:17:04 +02:00
parent 430d30e4ee
commit 2656132158
4 changed files with 52 additions and 16 deletions

View File

@@ -5,14 +5,18 @@
services.nextcloud = {
enable = true;
package = pkgs.nextcloud29;
hostName = "localhost";
hostName = "cloud.anotherhadi.com";
config.adminpassFile = "/etc/nextcloudpwd";
};
networking.firewall.allowedTCPPorts = [ 80 443 8080 ];
networking.firewall.allowedTCPPorts = [ 80 443 8083 ];
services.nginx.virtualHosts."localhost".listen = [{
addr = "127.0.0.1";
port = 8080;
}];
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
forceSSL = true;
enableACME = true;
listen = [{
addr = "localhost";
port = 8083;
}];
};
}