diff --git a/modules/services/server/nextcloud.nix b/modules/services/server/nextcloud.nix index 7548617..f7216a4 100644 --- a/modules/services/server/nextcloud.nix +++ b/modules/services/server/nextcloud.nix @@ -8,6 +8,19 @@ package = pkgs.nextcloud26; enableBrokenCiphersForSSE = false; database.createLocally = false; + caching = { + redis = true; + apcu = false; + }; + extraOptions = { + redis = { + host = "/run/redis-nextcloud/redis.sock"; + port = 0; + }; + "memcache.local" = "\\OC\\Memcache\\Redis"; + "memcache.distributed" = "\\OC\\Memcache\\Redis"; + "memcache.locking" = "\\OC\\Memcache\\Redis"; + }; config = { dbtype = "pgsql"; dbuser = "nextcloud"; @@ -25,6 +38,12 @@ #autoUpdateApps.enable = true; }; + services.redis.servers.nextcloud = { + enable = true; + user = "nextcloud"; + port = 0; + }; + services.nginx = { enable = true; virtualHosts = {