X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fcapitaines%2Fproduction.nix;fp=modules%2Fprivate%2Fwebsites%2Fcapitaines%2Fproduction.nix;h=0000000000000000000000000000000000000000;hb=d3452fc59b9839846225fd254926c64a9c71f071;hp=ee1698b0b5aca4f66d960019e58d19cdd6bf122b;hpb=514f9ec3beec470c4445be690673a0ceab9115b4;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/capitaines/production.nix b/modules/private/websites/capitaines/production.nix deleted file mode 100644 index ee1698b..0000000 --- a/modules/private/websites/capitaines/production.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ lib, pkgs, config, ... }: -let - cfg = config.myServices.websites.capitaines.production; - env = config.myEnv.websites.capitaines; -in { - options.myServices.websites.capitaines.production.enable = lib.mkEnableOption "enable Capitaines's website"; - - config = lib.mkIf cfg.enable { - myServices.websites.webappDirs.capitaines_mastodon = ./mastodon_static; - services.websites.env.production.vhostConfs.capitaines_mastodon = let - root = "/run/current-system/webapps/capitaines_mastodon"; - in { - certName = "capitaines"; - certMainHost = "mastodon.capitaines.fr"; - hosts = [ "mastodon.capitaines.fr" ]; - root = root; - extraConfig = [ - '' - ErrorDocument 404 /index.html - - DirectoryIndex index.html - Options Indexes FollowSymLinks MultiViews Includes - Require all granted - - '' - ]; - }; - - myServices.websites.webappDirs.capitaines_discourse = ./discourse_static; - services.websites.env.production.vhostConfs.capitaines_discourse = let - root = "/run/current-system/webapps/capitaines_discourse"; - in { - certName = "capitaines"; - addToCerts = true; - hosts = [ "discourse.capitaines.fr" ]; - root = root; - extraConfig = [ - '' - ErrorDocument 404 /index.html - - DirectoryIndex index.html - Options Indexes FollowSymLinks MultiViews Includes - Require all granted - - '' - ]; - }; - - services.websites.env.production.vhostConfs.capitaines = { - certName = "capitaines"; - addToCerts = true; - hosts = [ "capitaines.fr" ]; - root = "/run/current-system/webapps/_www"; - extraConfig = [ '' - - DirectoryIndex index.htm - Require all granted - - '' ]; - }; - }; -}