aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/capitaines
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/websites/capitaines')
-rw-r--r--modules/private/websites/capitaines/discourse_static/discourse.pngbin2440 -> 0 bytes
-rw-r--r--modules/private/websites/capitaines/discourse_static/index.html28
-rw-r--r--modules/private/websites/capitaines/landing_pages.nix57
-rw-r--r--modules/private/websites/capitaines/mastodon_static/index.html29
-rw-r--r--modules/private/websites/capitaines/mastodon_static/oops.pngbin120305 -> 0 bytes
5 files changed, 0 insertions, 114 deletions
diff --git a/modules/private/websites/capitaines/discourse_static/discourse.png b/modules/private/websites/capitaines/discourse_static/discourse.png
deleted file mode 100644
index 91ce42d..0000000
--- a/modules/private/websites/capitaines/discourse_static/discourse.png
+++ /dev/null
Binary files differ
diff --git a/modules/private/websites/capitaines/discourse_static/index.html b/modules/private/websites/capitaines/discourse_static/index.html
deleted file mode 100644
index 4c2ead0..0000000
--- a/modules/private/websites/capitaines/discourse_static/index.html
+++ /dev/null
@@ -1,28 +0,0 @@
1<!DOCTYPE html>
2<html lang='en'>
3 <head>
4 <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
5 <title>This instance is now closed - Discourse</title>
6 <style>
7 body {
8 text-align: center;
9 background: #f9f9f9;
10 font-family: sans-serif;
11 }
12 img {
13 max-width: 235px;
14 width: 100%;
15 }
16 h1 {
17 font-size: 20px;
18 font-weight: 400;
19 }
20 </style>
21 </head>
22 <body>
23 <div>
24 <img alt='Discourse capitaines' src='/discourse.png'>
25 <h1>Sorry, this instance is closed now.</h1>
26 </div>
27 </body>
28</html>
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, ... }:
2let
3 cfg = config.myServices.websites.capitaines.landing_pages;
4 certName = "capitaines";
5 domain = "capitaines.fr";
6in {
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}
diff --git a/modules/private/websites/capitaines/mastodon_static/index.html b/modules/private/websites/capitaines/mastodon_static/index.html
deleted file mode 100644
index fae4152..0000000
--- a/modules/private/websites/capitaines/mastodon_static/index.html
+++ /dev/null
@@ -1,29 +0,0 @@
1<!DOCTYPE html>
2<html lang='en'>
3 <head>
4 <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
5 <title>This instance is now closed - Mastodon</title>
6 <style>
7 body {
8 text-align: center;
9 background: #282c37;
10 font-family: sans-serif;
11 }
12 img {
13 max-width: 470px;
14 width: 100%;
15 }
16 h1 {
17 font-size: 20px;
18 font-weight: 400;
19 color: #9baec8;
20 }
21 </style>
22 </head>
23 <body>
24 <div>
25 <img alt='Mastodon' src='/oops.png'>
26 <h1>Sorry, this instance is closed now.</h1>
27 </div>
28 </body>
29</html>
diff --git a/modules/private/websites/capitaines/mastodon_static/oops.png b/modules/private/websites/capitaines/mastodon_static/oops.png
deleted file mode 100644
index 0abddad..0000000
--- a/modules/private/websites/capitaines/mastodon_static/oops.png
+++ /dev/null
Binary files differ