extraDomains = {
"db-1.immae.eu" = null;
"tools.immae.eu" = null;
+ "connexionswing.immae.eu" = null;
+ "sandetludo.immae.eu" = null;
};
};
};
'';
poolConfigs = {
adminer = mypkgs.adminer.phpFpm.pool;
+ connexionswing_dev = mypkgs.connexionswing_dev.phpFpm.pool;
www = ''
listen = /var/run/phpfpm/www.sock
user = wwwrun
};
};
+ system.activationScripts = {
+ connexionswing_dev = mypkgs.connexionswing_dev.activationScript;
+ };
+
services.httpd = let
withSSL = domain: {
enableSSL = true;
# FIXME: http2
extraModules = pkgs.lib.lists.unique (
mypkgs.adminer.apache.modules ++
+ mypkgs.connexionswing_dev.apache.modules ++
[
"macro"
"ldap"
mypkgs.ympd.apache.vhostConf
];
})
+ (withSSL "eldiron" // {
+ listen = [ { ip = "*"; port = 443; } ];
+ hostName = "connexionswing.immae.eu";
+ serverAliases = [ "sandetludo.immae.eu" ];
+ documentRoot = mypkgs.connexionswing_dev.webRoot;
+ extraConfig = builtins.concatStringsSep "\n" [
+ mypkgs.connexionswing_dev.apache.vhostConf
+ ];
+ })
{ # Should go last, default fallback
listen = [ { ip = "*"; port = 80; } ];
hostName = "redirectSSL";