commit e9e89574e320026fa3c21f1987af6a4d3fe8f273 parent 6f89e70690b4ac7978543914798803a21546c0ec Author: MTRNord <mtrnord1@gmail.com> Date: Fri, 1 Sep 2023 17:15:04 +0200 Fix redis/discourse Diffstat:
| M | nixos/worker-1/configuration.nix | | | 19 | ++++--------------- |
1 file changed, 4 insertions(+), 15 deletions(-)
diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix @@ -507,10 +507,6 @@ owner = "patroni"; group = "patroni"; }; - sops.secrets."redis_password" = { - owner = "redis-localhost"; - group = "redis-localhost"; - }; sops.secrets."discourse/db_password" = { owner = "discourse"; group = "discourse"; @@ -532,21 +528,15 @@ group = "discourse"; }; services = { - redis = { - vmOverCommit = true; - servers = { - localhost = { - enable = true; - requirePassFile = config.sops.secrets."redis_password".path; - }; - }; - }; discourse = { enable = true; database = { - host = "postgres.internal.midnightthoughts.space:5000"; + host = "postgres.internal.midnightthoughts.space"; passwordFile = config.sops.secrets."discourse/db_password".path; }; + backendSettings = { + db_port = 5000; + }; secretKeyBaseFile = config.sops.secrets."discourse/secret_key_base".path; mail = { outgoing = { @@ -561,7 +551,6 @@ }; redis = { host = "localhost"; - passwordFile = config.sops.secrets."discourse/redis_password".path; }; hostname = "forum.miki.community"; plugins = with config.services.discourse.package.plugins; [