blob: 899bb3a5e00046e4815f5dcee103fce113b5b144 (
plain) (
tree)
|
|
{ lib, pkgs, config, ... }:
let
cfg = config.myServices.websites.immae.temp;
varDir = "/var/lib/ftp/temp.immae.eu";
env = config.myEnv.websites.temp;
in {
options.myServices.websites.immae.temp.enable = lib.mkEnableOption "enable Temp' website";
config = lib.mkIf cfg.enable {
services.websites.env.production.modules = [ "headers" ];
services.websites.env.production.vhostConfs.temp = {
certName = "eldiron";
addToCerts = true;
hosts = [ "temp.immae.eu" ];
root = varDir;
extraConfig = [
''
Use Apaxy "${varDir}" "title .duplicity-ignore"
<Directory "${varDir}">
Options -Indexes
AllowOverride None
Require all granted
</Directory>
<DirectoryMatch "${varDir}/(.+)">
Options Indexes
</DirectoryMatch>
''
];
};
};
}
|