X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fcapitaines%2Flanding_pages.nix;fp=modules%2Fprivate%2Fwebsites%2Fcapitaines%2Flanding_pages.nix;h=0000000000000000000000000000000000000000;hb=1a64deeb894dc95e2645a75771732c6cc53a79ad;hp=edba8b90ba7162224bd96f587d425f51f6520d6d;hpb=fa25ffd4583cc362075cd5e1b4130f33306103f0;p=perso%2FImmae%2FConfig%2FNix.git
diff --git a/modules/private/websites/capitaines/landing_pages.nix b/modules/private/websites/capitaines/landing_pages.nix
deleted file mode 100644
index edba8b9..0000000
--- a/modules/private/websites/capitaines/landing_pages.nix
+++ /dev/null
@@ -1,57 +0,0 @@
-{ lib, config, ... }:
-let
- cfg = config.myServices.websites.capitaines.landing_pages;
- 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.env.production.vhostConfs.capitaines_mastodon = rec {
- inherit certName;
- certMainHost = "mastodon.${domain}";
- hosts = [ certMainHost ];
- root = ./mastodon_static;
- extraConfig = [
- ''
- ErrorDocument 404 /index.html
-
- DirectoryIndex index.html
- Options Indexes FollowSymLinks MultiViews Includes
- Require all granted
-
- ''
- ];
- };
-
- services.websites.env.production.vhostConfs.capitaines_discourse = {
- inherit certName;
- addToCerts = true;
- hosts = [ "discourse.${domain}" ];
- root = ./discourse_static;
- extraConfig = [
- ''
- ErrorDocument 404 /index.html
-
- DirectoryIndex index.html
- Options Indexes FollowSymLinks MultiViews Includes
- Require all granted
-
- ''
- ];
- };
-
- services.websites.env.production.vhostConfs.capitaines = {
- inherit certName;
- addToCerts = true;
- hosts = [ domain ];
- root = ../_www;
- extraConfig = [ ''
-
- DirectoryIndex index.htm
- Require all granted
-
- '' ];
- };
- };
-}