1 { lib, pkgs, config, myconfig, ... }:
3 cfg = config.myServices.websites.immae.temp;
4 varDir = "/var/lib/ftp/temp.immae.eu";
5 env = myconfig.env.websites.temp;
7 options.myServices.websites.immae.temp.enable = lib.mkEnableOption "enable Temp' website";
9 config = lib.mkIf cfg.enable {
10 services.websites.production.modules = [ "headers" ];
11 services.websites.production.vhostConfs.temp = {
14 hosts = [ "temp.immae.eu" ];
18 Use Apaxy "${varDir}" "title .duplicity-ignore"
20 Header set Content-Disposition attachment
22 <Directory "${varDir}">
28 <DirectoryMatch "${varDir}/(.+)">