chloeInte = ./websites/chloe/integration.nix;
chloeProd = ./websites/chloe/production.nix;
+ cipcaSympa = ./websites/cip-ca/sympa.nix;
+
connexionswingInte = ./websites/connexionswing/integration.nix;
connexionswingProd = ./websites/connexionswing/production.nix;
sympa_virtual = pkgs.writeText "virtual.sympa" ''
sympa-request@${domain} postmaster@immae.eu
sympa-owner@${domain} postmaster@immae.eu
+
+ sympa-request@cip-ca.fr postmaster@immae.eu
+ sympa-owner@cip-ca.fr postmaster@immae.eu
'';
sympa_transport = pkgs.writeText "transport.sympa" ''
${domain} error:User unknown in recipient table
listmaster@${domain} sympa:listmaster@${domain}
bounce@${domain} sympabounce:sympa@${domain}
abuse-feedback-report@${domain} sympabounce:sympa@${domain}
+
+ sympa@cip-ca.fr sympa:sympa@cip-ca.fr
+ listmaster@cip-ca.fr sympa:listmaster@cip-ca.fr
+ bounce@cip-ca.fr sympabounce:sympa@cip-ca.fr
+ abuse-feedback-report@cip-ca.fr sympabounce:sympa@cip-ca.fr
'';
};
config = {
webHost = "mail.immae.eu";
webLocation = "/sympa";
};
+ "cip-ca.fr" = {
+ webHost = "mail.cip-ca.fr";
+ webLocation = "/sympa";
+ };
};
database = {
--- /dev/null
+{ lib, config, ... }:
+let
+ cfg = config.myServices.websites.cip-ca.sympa;
+in
+{
+ options.myServices.websites.cip-ca.sympa.enable = lib.mkEnableOption "enable cip-ca’s sympa website";
+ config = lib.mkIf cfg.enable {
+ services.websites.env.tools.vhostConfs.cipca_sympa = {
+ certName = "cip-ca";
+ certMainHost = "mail.cip-ca.fr";
+ hosts = [ "mail.cip-ca.fr" ];
+ root = null;
+ extraConfig = [
+ ''
+ Alias /static-sympa/ /var/lib/sympa/static_content/
+ <Directory /var/lib/sympa/static_content/>
+ Require all granted
+ AllowOverride none
+ </Directory>
+ <Location /sympa>
+ SetHandler "proxy:unix:/run/sympa/wwsympa.socket|fcgi://"
+ Require all granted
+ </Location>
+ ''
+ ];
+ };
+ };
+}