Nextcloud: Difference between revisions

imported>Bendlas
m correct caching config
imported>Onny
Update Redis configuration with NixOS 23.05
Line 84: Line 84:
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
services.nextcloud = {                 
services.nextcloud = {                 
   enable = true;                  
   enable = true;      
  # New option since NixOS 23.05
  configureRedis = true;
  caching.apcu = 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";
  };
};
services.redis.servers.nextcloud = {
  enable = true;
  user = "nextcloud";
  port = 0;
};
};
</nowiki>}}
</nowiki>}}