This commit is contained in:
Hadi 2024-06-07 22:53:04 +02:00
parent 2c0246c84a
commit 24de104139

View File

@ -7,8 +7,27 @@
package = pkgs.nextcloud29; package = pkgs.nextcloud29;
hostName = "localhost"; hostName = "localhost";
config.adminpassFile = "/etc/nextcloudpwd"; config.adminpassFile = "/etc/nextcloudpwd";
settings = { overwritehost = "localhost:8080"; }; nginx.enable = true;
}; };
networking.firewall.allowedTCPPorts = [ 8080 ]; networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx = {
enable = true;
# Use recommended settings
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
# Only allow PFS-enabled ciphers with AES256
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
# Setup Nextcloud virtual host to listen on ports
virtualHosts = {
"localhost" = { };
};
};
} }