From 93aac362448b29f6cfea0e5af255cbaaea1d7f8a Mon Sep 17 00:00:00 2001 From: catvayor Date: Tue, 9 Jul 2024 17:55:50 +0200 Subject: [PATCH] deployed fake modo --- machines/kat-mail-test/default.nix | 4 ++++ machines/kat-mail-test/modo.nix | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/machines/kat-mail-test/default.nix b/machines/kat-mail-test/default.nix index daa9930..969a286 100644 --- a/machines/kat-mail-test/default.nix +++ b/machines/kat-mail-test/default.nix @@ -89,6 +89,10 @@ in virtualHosts."betamail.katvayor.net" = { enableACME = true; addSSL = true; + locations."/" = { + recommendedProxySettings = true; + proxyPass = "http://localhost:8000/"; + }; }; }; diff --git a/machines/kat-mail-test/modo.nix b/machines/kat-mail-test/modo.nix index b1da670..a4fabbc 100644 --- a/machines/kat-mail-test/modo.nix +++ b/machines/kat-mail-test/modo.nix @@ -52,4 +52,19 @@ ]; } ]; + services.postgresql = { + enable = true; + ensureUsers = [ + { + name = "moderators"; + ensureClauses.superuser = true; + } + ]; + ensureDatabases = [ + "moderation" + ]; + identMap = '' + map-moderators moderators moderators + ''; + }; }