From 2ed0f723c713c67ef281af0b22119481f52086dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Thu, 15 Apr 2021 21:04:48 +0200 Subject: [PATCH] nixos/mailman: add http listener for uwsgi With the config suggested in the module docs both Mailman core and Hyperkitty are running, but Mailman core can not connect to Hyperkitty, since the default hyperkitty.baseUrl is not set up by the module. This adds a http listener to the uwsgi config and changes the default hyperkitty.baseUrl to connect to this http listener. --- nixos/modules/services/mail/mailman.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index a5b17be349c..84b0fbc5f6e 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -165,7 +165,7 @@ in { baseUrl = mkOption { type = types.str; - default = "http://localhost/hyperkitty/"; + default = "http://localhost:18507/archives/"; description = '' Where can Mailman connect to Hyperkitty's internal API, preferably on localhost? @@ -391,6 +391,7 @@ in { plugins = ["python3"]; home = pythonEnv; module = "mailman_web.wsgi"; + http = "127.0.0.1:18507"; }; uwsgiConfigFile = pkgs.writeText "uwsgi-mailman.json" (builtins.toJSON uwsgiConfig); in {