From 750fe5a43b957b91a26069cf8a4fe19fc7b2633c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 22 Oct 2021 20:07:14 +0200 Subject: Remove webappdirs --- modules/private/websites/papa/maison_bbc.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/private/websites/papa/maison_bbc.nix') diff --git a/modules/private/websites/papa/maison_bbc.nix b/modules/private/websites/papa/maison_bbc.nix index 528c832..3eb736e 100644 --- a/modules/private/websites/papa/maison_bbc.nix +++ b/modules/private/websites/papa/maison_bbc.nix @@ -1,23 +1,21 @@ { 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; + root = ./maison_bbc_static; extraConfig = [ '' ErrorDocument 404 /index.html - + DirectoryIndex index.htm index.html AllowOverride None Require all granted -- cgit v1.2.3