diff options
Diffstat (limited to 'modules/private/websites/capitaines/landing_pages.nix')
-rw-r--r-- | modules/private/websites/capitaines/landing_pages.nix | 57 |
1 files changed, 0 insertions, 57 deletions
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 @@ | |||
1 | { lib, config, ... }: | ||
2 | let | ||
3 | cfg = config.myServices.websites.capitaines.landing_pages; | ||
4 | certName = "capitaines"; | ||
5 | domain = "capitaines.fr"; | ||
6 | in { | ||
7 | options.myServices.websites.capitaines.landing_pages.enable = lib.mkEnableOption "enable Capitaines's landing pages"; | ||
8 | |||
9 | config = lib.mkIf cfg.enable { | ||
10 | services.websites.env.production.vhostConfs.capitaines_mastodon = rec { | ||
11 | inherit certName; | ||
12 | certMainHost = "mastodon.${domain}"; | ||
13 | hosts = [ certMainHost ]; | ||
14 | root = ./mastodon_static; | ||
15 | extraConfig = [ | ||
16 | '' | ||
17 | ErrorDocument 404 /index.html | ||
18 | <Directory ${./mastodon_static}> | ||
19 | DirectoryIndex index.html | ||
20 | Options Indexes FollowSymLinks MultiViews Includes | ||
21 | Require all granted | ||
22 | </Directory> | ||
23 | '' | ||
24 | ]; | ||
25 | }; | ||
26 | |||
27 | services.websites.env.production.vhostConfs.capitaines_discourse = { | ||
28 | inherit certName; | ||
29 | addToCerts = true; | ||
30 | hosts = [ "discourse.${domain}" ]; | ||
31 | root = ./discourse_static; | ||
32 | extraConfig = [ | ||
33 | '' | ||
34 | ErrorDocument 404 /index.html | ||
35 | <Directory ${./discourse_static}> | ||
36 | DirectoryIndex index.html | ||
37 | Options Indexes FollowSymLinks MultiViews Includes | ||
38 | Require all granted | ||
39 | </Directory> | ||
40 | '' | ||
41 | ]; | ||
42 | }; | ||
43 | |||
44 | services.websites.env.production.vhostConfs.capitaines = { | ||
45 | inherit certName; | ||
46 | addToCerts = true; | ||
47 | hosts = [ domain ]; | ||
48 | root = ../_www; | ||
49 | extraConfig = [ '' | ||
50 | <Directory ${../_www}> | ||
51 | DirectoryIndex index.htm | ||
52 | Require all granted | ||
53 | </Directory> | ||
54 | '' ]; | ||
55 | }; | ||
56 | }; | ||
57 | } | ||