summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-09-30 23:00:36 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-09-30 23:00:36 +0200
commitbb03185103072af86d4e196aac06beec4869dac6 (patch)
tree2c360edff8c0b538f85095433c8b76416ce41255
parent9e1edf16c3b463d2662dccb18155c19b25bc4094 (diff)
downloadnixos-bb03185103072af86d4e196aac06beec4869dac6.tar
nixos-bb03185103072af86d4e196aac06beec4869dac6.tar.gz
nixos-bb03185103072af86d4e196aac06beec4869dac6.tar.bz2
nixos-bb03185103072af86d4e196aac06beec4869dac6.tar.xz
nixos-bb03185103072af86d4e196aac06beec4869dac6.zip
more virtual hosts for ymir
-rw-r--r--ymir.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/ymir.nix b/ymir.nix
index c663c4ce..a00873f4 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -108,14 +108,17 @@ in {
108 custom_alias_secret_file="/etc/prosody/alias_secret" 108 custom_alias_secret_file="/etc/prosody/alias_secret"
109 ''; 109 '';
110 110
111 virtualHosts."xmpp.li" = { 111 let
112 enabled = true; 112 makeHost = name: {
113 domain = "xmpp.li"; 113 enabled = true;
114 ssl = { 114 domain = name;
115 key = "certs/xmpp.li.key"; 115 ssl = {
116 cert = "certs/xmpp.li.crt"; 116 key = "certs/${name}.key";
117 cert = "certs/${name}.crt";
118 };
117 }; 119 };
118 }; 120 in virtualHosts = builtins.listToAttrs (name: { inherit name; value = makeHost name; })
121 ["xmpp.li" "yggdrasil.li" "praseodym.org" "141.li"];
119 }; 122 };
120 security.pam.services."xmpp".text = '' 123 security.pam.services."xmpp".text = ''
121 auth requisite pam_succeed_if.so user ingroup xmpp 124 auth requisite pam_succeed_if.so user ingroup xmpp