forked from mirrors/nixpkgs
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.
This commit is contained in:
parent
37f8212780
commit
2ed0f723c7
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue