diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 23:00:36 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-30 23:00:36 +0200 |
commit | bb03185103072af86d4e196aac06beec4869dac6 (patch) | |
tree | 2c360edff8c0b538f85095433c8b76416ce41255 | |
parent | 9e1edf16c3b463d2662dccb18155c19b25bc4094 (diff) | |
download | nixos-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.nix | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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 |