blob: 2958d87038c8a3d952fae7a524f72fb1aa1a1fad (
plain) (
tree)
|
|
{ lib, pkgs, config, myconfig, mylibs, ... }:
let
cfg = config.services.myWebsites.DeniseJerome;
varDir = "/var/lib/ftp/denisejerome";
env = myconfig.env.websites.denisejerome;
in {
options.services.myWebsites.DeniseJerome = {
production = {
enable = lib.mkEnableOption "enable Denise Jerome's website";
};
};
imports = [
../commons/stats.nix
];
config = lib.mkIf cfg.production.enable {
services.myWebsites.commons.stats.enable = true;
services.myWebsites.commons.stats.sites = [
{
name = "denisejerome.piedsjaloux.fr";
conf = ./denisejerome_goaccess.conf;
}
];
security.acme.certs."denisejerome" = config.services.myCertificates.certConfig // {
domain = "denisejerome.piedsjaloux.fr";
};
services.myWebsites.production.vhostConfs.denisejerome = {
certName = "denisejerome";
hosts = ["denisejerome.piedsjaloux.fr" ];
root = varDir;
extraConfig = [
''
Use Stats denisejerome.piedsjaloux.fr
<Directory ${varDir}>
DirectoryIndex index.htm index.html
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride AuthConfig
Require all granted
</Directory>
''
];
};
};
}
|