aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/cip-ca
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-06-07 18:26:57 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-06-07 19:13:08 +0200
commit6c7d42fc4844bc4f9af72dab531be8377825296a (patch)
treecc202c8c5156c27d72e322520c34684e00eb1efb /modules/private/websites/cip-ca
parent7130402cfecc196ce79c8f07a9dba71974f085e3 (diff)
downloadNix-6c7d42fc4844bc4f9af72dab531be8377825296a.tar.gz
Nix-6c7d42fc4844bc4f9af72dab531be8377825296a.tar.zst
Nix-6c7d42fc4844bc4f9af72dab531be8377825296a.zip
Add cip-ca mail website
Diffstat (limited to 'modules/private/websites/cip-ca')
-rw-r--r--modules/private/websites/cip-ca/sympa.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/private/websites/cip-ca/sympa.nix b/modules/private/websites/cip-ca/sympa.nix
new file mode 100644
index 0000000..bb66fc6
--- /dev/null
+++ b/modules/private/websites/cip-ca/sympa.nix
@@ -0,0 +1,28 @@
1{ lib, config, ... }:
2let
3 cfg = config.myServices.websites.cip-ca.sympa;
4in
5{
6 options.myServices.websites.cip-ca.sympa.enable = lib.mkEnableOption "enable cip-ca’s sympa website";
7 config = lib.mkIf cfg.enable {
8 services.websites.env.tools.vhostConfs.cipca_sympa = {
9 certName = "cip-ca";
10 certMainHost = "mail.cip-ca.fr";
11 hosts = [ "mail.cip-ca.fr" ];
12 root = null;
13 extraConfig = [
14 ''
15 Alias /static-sympa/ /var/lib/sympa/static_content/
16 <Directory /var/lib/sympa/static_content/>
17 Require all granted
18 AllowOverride none
19 </Directory>
20 <Location /sympa>
21 SetHandler "proxy:unix:/run/sympa/wwsympa.socket|fcgi://"
22 Require all granted
23 </Location>
24 ''
25 ];
26 };
27 };
28}