nextcloud: 16.0.3 -> 18.0.1

feature/hass
Ingolf Wagner 2020-03-06 00:11:47 +08:00
parent 3e8d995221
commit 95da0e6bb2
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
1 changed files with 17 additions and 1 deletions

View File

@ -23,6 +23,22 @@
config = { config, pkgs, ... }: {
# don't forget the database backup before doing this
# https://docs.nextcloud.com/server/stable/admin_manual/maintenance/backup.html
# https://docs.nextcloud.com/server/stable/admin_manual/maintenance/upgrade.html
# use snapshots in case of a rollback
nixpkgs.config.packageOverrides = super: {
nextcloud = super.nextcloud.overrideAttrs (old: rec {
name = "nextcloud-${version}";
version = "18.0.1";
src = super.fetchurl {
url =
"https://download.nextcloud.com/server/releases/nextcloud-18.0.1.tar.bz2";
sha256 = "1h0rxpdssn1hc65k41zbvww9r4f79vbd9bixc9ri5n7hp0say3vp";
};
});
};
networking.firewall.allowedTCPPorts = [ 80 ];
networking.firewall.allowedUDPPorts = [ 80 ];
@ -32,7 +48,7 @@
config.adminpassFile = toString <secrets/nextcloud/rootpassword>;
nginx.enable = true;
hostName = "nextcloud.ingolf-wagner.de";
logLevel = 2;
#logLevel = 0;
config.overwriteProtocol = "https";
config.extraTrustedDomains = [
"nextcloud.ingolf-wagner.de"