1 { lib, pkgs, config, myconfig, mylibs, ... }:
3 cfg = config.services.myWebsites.Temp;
4 varDir = "/var/lib/ftp/temp.immae.eu";
5 env = myconfig.env.websites.temp;
7 options.services.myWebsites.Temp = {
9 enable = lib.mkEnableOption "enable Temp' website";
13 config = lib.mkIf cfg.production.enable {
14 security.acme.certs."eldiron".extraDomains."temp.immae.eu" = null;
16 services.myWebsites.production.modules = [ "headers" ];
17 services.myWebsites.production.vhostConfs.temp = {
19 hosts = [ "temp.immae.eu" ];
23 Use Apaxy "${varDir}" "title .duplicity-ignore"
25 Header set Content-Disposition attachment
27 <Directory "${varDir}">
33 <DirectoryMatch "${varDir}/(.+)">