diff options
author | Linus Heckemann <git@sphalerite.org> | 2022-04-09 20:14:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-09 20:14:55 +0200 |
commit | 0eba1fd8409f75199cd345a81a2eda694415de17 (patch) | |
tree | 17e1740797aabdba67c7c4359f7ba0623df71bea | |
parent | 5c973af3a3213484cc6a6c91bc5d392a8d8e984d (diff) | |
parent | a62c5f34356fcbbec9b02f54ed655d06cc9634c2 (diff) |
Merge pull request #142005 from sorpaas/patch-6
nixos/mailman: use separate virtualHosts
-rw-r--r-- | nixos/modules/services/mail/mailman.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index 0c9b38b44b24d..263f3b159d25f 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -277,13 +277,12 @@ in { services.nginx = mkIf cfg.serve.enable { enable = mkDefault true; - virtualHosts."${lib.head cfg.webHosts}" = { - serverAliases = cfg.webHosts; + virtualHosts = lib.genAttrs cfg.webHosts (webHost: { locations = { "/".extraConfig = "uwsgi_pass unix:/run/mailman-web.socket;"; "/static/".alias = webSettings.STATIC_ROOT + "/"; }; - }; + }); }; environment.systemPackages = [ (pkgs.buildEnv { |