X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fcapitaines%2Flanding_pages.nix;h=edba8b90ba7162224bd96f587d425f51f6520d6d;hb=750fe5a43b957b91a26069cf8a4fe19fc7b2633c;hp=b94a39805163eb03edcad06a491ea33925dae454;hpb=fcbdf67afe262bf6b35a4047956b2f8c12a04cb1;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/capitaines/landing_pages.nix b/modules/private/websites/capitaines/landing_pages.nix index b94a398..edba8b9 100644 --- a/modules/private/websites/capitaines/landing_pages.nix +++ b/modules/private/websites/capitaines/landing_pages.nix @@ -1,23 +1,21 @@ { lib, config, ... }: let cfg = config.myServices.websites.capitaines.landing_pages; - webappdirs = config.services.websites.webappDirsPaths; certName = "capitaines"; domain = "capitaines.fr"; in { options.myServices.websites.capitaines.landing_pages.enable = lib.mkEnableOption "enable Capitaines's landing pages"; config = lib.mkIf cfg.enable { - services.websites.webappDirs.capitaines_mastodon = ./mastodon_static; services.websites.env.production.vhostConfs.capitaines_mastodon = rec { inherit certName; certMainHost = "mastodon.${domain}"; hosts = [ certMainHost ]; - root = webappdirs.capitaines_mastodon; + root = ./mastodon_static; extraConfig = [ '' ErrorDocument 404 /index.html - + DirectoryIndex index.html Options Indexes FollowSymLinks MultiViews Includes Require all granted @@ -26,16 +24,15 @@ in { ]; }; - services.websites.webappDirs.capitaines_discourse = ./discourse_static; services.websites.env.production.vhostConfs.capitaines_discourse = { inherit certName; addToCerts = true; hosts = [ "discourse.${domain}" ]; - root = webappdirs.capitaines_discourse; + root = ./discourse_static; extraConfig = [ '' ErrorDocument 404 /index.html - + DirectoryIndex index.html Options Indexes FollowSymLinks MultiViews Includes Require all granted @@ -48,9 +45,9 @@ in { inherit certName; addToCerts = true; hosts = [ domain ]; - root = webappdirs._www; + root = ../_www; extraConfig = [ '' - + DirectoryIndex index.htm Require all granted