add redis extra config

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-25 18:01:55 +01:00
parent 1202604cbc
commit 2e376a8c18
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -22,8 +22,11 @@ in
extraConfig = {
WEB_DOMAIN = "mastodon.darkkirb.de";
REDIS_NAMESPACE = "mastodon";
SINGLE_USER_MODE = true;
SINGLE_USER_MODE = "true";
REDIS_HOST = "127.0.0.1";
REDIS_PORT = toString config.services.redis.mastodon.port;
};
redis.createLocally = false;
otpSecretFile = config.sops.secrets."services/mastodon/otpSecret".path;
secretKeyBaseFile = config.sops.secrets."services/mastodon/secretKeyBase".path;
smtp = {
@ -61,4 +64,10 @@ in
proxyWebsockets = true;
};
};
services.redis.servers.mastodon = {
enable = true;
bind = "127.0.0.1";
databases = 1;
port = 6379;
};
}