{ lib, pkgs, config, myconfig, mylibs, ... }:
let
cfg = config.services.myWebsites.Release;
varDir = "/var/lib/ftp/release.immae.eu";
env = myconfig.env.websites.release;
in {
options.services.myWebsites.Release = {
production = {
enable = lib.mkEnableOption "enable Release' website";
};
};
config = lib.mkIf cfg.production.enable {
services.webstats.sites = [ { name = "release.immae.eu"; } ];
security.acme.certs."eldiron".extraDomains."release.immae.eu" = null;
services.myWebsites.production.vhostConfs.release = {
certName = "eldiron";
hosts = [ "release.immae.eu" ];
root = varDir;
extraConfig = [
''
Use Stats release.immae.eu
Use Apaxy "${varDir}" "title .duplicity-ignore"
Use LDAPConnect
Options Indexes
AllowOverride All
Require all granted
Use LDAPConnect
Options Indexes FollowSymlinks
AllowOverride None
Require all granted
''
];
};
};
}