Former-commit-id: 2656132158
This commit is contained in:
Hadi
2024-06-08 02:17:04 +02:00
parent 553455474b
commit e925d6712c
4 changed files with 52 additions and 16 deletions
+10 -6
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;
}];
};
}