diff options
author | Wei Tang <wei@that.world> | 2021-10-17 17:15:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 17:15:12 +0200 |
commit | a62c5f34356fcbbec9b02f54ed655d06cc9634c2 (patch) | |
tree | e18ed0d1873e8c17ffc509f36b2a63da815ea9bc /nixos/modules/services/mail/mailman.nix | |
parent | 96a99266450b0d25d40049693971cb699cfeaa5e (diff) | |
download | nixpkgs-a62c5f34356fcbbec9b02f54ed655d06cc9634c2.tar nixpkgs-a62c5f34356fcbbec9b02f54ed655d06cc9634c2.tar.gz nixpkgs-a62c5f34356fcbbec9b02f54ed655d06cc9634c2.tar.bz2 nixpkgs-a62c5f34356fcbbec9b02f54ed655d06cc9634c2.tar.lz nixpkgs-a62c5f34356fcbbec9b02f54ed655d06cc9634c2.tar.xz nixpkgs-a62c5f34356fcbbec9b02f54ed655d06cc9634c2.tar.zst nixpkgs-a62c5f34356fcbbec9b02f54ed655d06cc9634c2.zip |
nixos/mailman: use separate virtualHosts
Diffstat (limited to 'nixos/modules/services/mail/mailman.nix')
-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 0c9b38b44b2..263f3b159d2 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 { |