move some redis servers around

This commit is contained in:
Rouven Seifert 2025-04-28 15:19:43 +02:00
parent 7056803ef5
commit 4d18a49ca1
Signed by: rouven.seifert
SSH key fingerprint: SHA256:WedRxwyCvqwDG6cd16qf/fizYDK1pvN4p5bawXlnKk0
4 changed files with 14 additions and 6 deletions

View file

@ -1,11 +1,8 @@
{ config, ... }:
{ config, lib, ... }:
let
domain = "idm.${config.networking.domain}";
in
{
age.secrets.authentik-core = {
file = ../../../../secrets/nuc/authentik/core.age;
};
sops.secrets."authentik/env" = { };
services.authentik = {
enable = true;
@ -16,5 +13,4 @@ in
};
environmentFile = config.sops.secrets."authentik/env".path;
};
}

View file

@ -184,6 +184,7 @@ in
redis = {
vmOverCommit = true;
servers.rspamd = {
port = 0;
enable = true;
};
};

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, lib, ... }:
let
domain = "tickets.${config.networking.domain}";
in
@ -9,11 +9,18 @@ in
createLocally = true;
type = "PostgreSQL";
};
redis.port = 6380;
port = 8085;
secretKeyBaseFile = config.sops.secrets."zammad_secret".path;
};
services.redis = {
servers.zammad = {
port = lib.mkForce 6380;
enable = true;
};
};
# disably spammy logs
systemd.services.zammad-web.preStart = ''
sed -i -e "s|debug|warn|" ./config/environments/production.rb