server: nextcloud: enable redis for nextcloud

This commit is contained in:
Kabbone 2023-05-13 11:07:29 +02:00
parent c6dffe5efe
commit 2debcf9821
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY

View File

@ -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 = {