-{ lib, pkgs, config, myconfig, mylibs, ... }:
+{ lib, pkgs, config, myconfig, ... }:
let
cfg = config.services.myWebsites.Temp;
varDir = "/var/lib/ftp/temp.immae.eu";
};
config = lib.mkIf cfg.production.enable {
- security.acme.certs."eldiron".extraDomains."temp.immae.eu" = null;
-
- services.myWebsites.production.modules = [ "headers" ];
- services.myWebsites.production.vhostConfs.temp = {
+ services.websites.production.modules = [ "headers" ];
+ services.websites.production.vhostConfs.temp = {
certName = "eldiron";
+ addToCerts = true;
hosts = [ "temp.immae.eu" ];
root = varDir;
extraConfig = [
''
- Use Apaxy "${varDir}" "title"
+ Use Apaxy "${varDir}" "title .duplicity-ignore"
<FilesMatch ".+">
Header set Content-Disposition attachment
</FilesMatch>