blob: 528c83209bb94df0df82729bb1f086202fceb792 (
plain) (
tree)
|
|
{ lib, config, ... }:
let
cfg = config.myServices.websites.papa.maison_bbc;
webappdirs = config.services.websites.webappDirsPaths;
in {
options.myServices.websites.papa.maison_bbc.enable = lib.mkEnableOption "enable Papa Maison bbc website";
config = lib.mkIf cfg.enable {
services.webstats.sites = [ { name = "maison.bbc.bouya.org"; } ];
services.websites.webappDirs.papa_maison_bbc = ./maison_bbc_static;
services.websites.env.production.vhostConfs.papa_maison_bbc = {
certName = "papa";
addToCerts = true;
hosts = [ "maison.bbc.bouya.org" ];
root = webappdirs.papa_maison_bbc;
extraConfig = [
''
ErrorDocument 404 /index.html
<Directory ${webappdirs.papa_maison_bbc}>
DirectoryIndex index.htm index.html
AllowOverride None
Require all granted
</Directory>
''
];
};
};
}
|