aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-10 17:03:32 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-02-10 17:03:32 +0100
commitf00e1c4bc8279400edf0ef56983e59a3fe95a8f3 (patch)
tree1d0a35b40f42f714a086437927a1b2405efa9f0d /modules/private/websites
parent978624f5427223eb2ed764f965f9e49b3abe8b54 (diff)
downloadNix-f00e1c4bc8279400edf0ef56983e59a3fe95a8f3.tar.gz
Nix-f00e1c4bc8279400edf0ef56983e59a3fe95a8f3.tar.zst
Nix-f00e1c4bc8279400edf0ef56983e59a3fe95a8f3.zip
Add DAV landing page
Diffstat (limited to 'modules/private/websites')
-rw-r--r--modules/private/websites/tools/dav/default.nix3
-rw-r--r--modules/private/websites/tools/dav/www/index.html42
2 files changed, 44 insertions, 1 deletions
diff --git a/modules/private/websites/tools/dav/default.nix b/modules/private/websites/tools/dav/default.nix
index d30c04a..c74930a 100644
--- a/modules/private/websites/tools/dav/default.nix
+++ b/modules/private/websites/tools/dav/default.nix
@@ -35,7 +35,7 @@ in {
35 certName = "eldiron"; 35 certName = "eldiron";
36 addToCerts = true; 36 addToCerts = true;
37 hosts = ["dav.immae.eu" ]; 37 hosts = ["dav.immae.eu" ];
38 root = null; 38 root = "/run/current-system/webapps/_dav";
39 extraConfig = [ 39 extraConfig = [
40 infcloud.vhostConf 40 infcloud.vhostConf
41 davical.apache.vhostConf 41 davical.apache.vhostConf
@@ -46,6 +46,7 @@ in {
46 davical = davical.phpFpm.pool; 46 davical = davical.phpFpm.pool;
47 }; 47 };
48 48
49 myServices.websites.webappDirs._dav = ./www;
49 myServices.websites.webappDirs."${davical.apache.webappName}" = davical.webRoot; 50 myServices.websites.webappDirs."${davical.apache.webappName}" = davical.webRoot;
50 myServices.websites.webappDirs."${infcloud.webappName}" = pkgs.webapps.infcloud; 51 myServices.websites.webappDirs."${infcloud.webappName}" = pkgs.webapps.infcloud;
51 }; 52 };
diff --git a/modules/private/websites/tools/dav/www/index.html b/modules/private/websites/tools/dav/www/index.html
new file mode 100644
index 0000000..91c25ba
--- /dev/null
+++ b/modules/private/websites/tools/dav/www/index.html
@@ -0,0 +1,42 @@
1<!doctype html>
2<html lang="fr">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Dav configuration</title>
7 <style type="text/css">
8 body {
9 padding-top: 1em;
10 padding-left: 5px;
11 padding-right: 5px;
12 text-align: left;
13 margin: auto;
14 font: 20px Helvetica, sans-serif;
15 color: #333;
16 height: 100%;
17 min-height: 100%;
18 }
19 span.code {
20 font-family: monospace;
21 }
22 </style>
23 </head>
24 <body>
25 <p>
26 Dav configuration:
27 <ul>
28 <li>Server: <span class="code">https://dav.immae.eu/caldav.php</span>
29 </li>
30 </ul>
31 </p>
32 <p>Clients:
33 <ul>
34 <li><a href="/infcloud">Infcloud (calendar, address book, todo lists)</a></li>
35 <li><a href="/carddavmate">Carddavmate (address book)</a></li>
36 <li><a href="/caldavzap">Caldavzap (calendar, todo lists)</a></li>
37 <li><a href="/davical">Davical (Manage dav account)</a></li>
38 </ul>
39 </p>
40 </body>
41</html>
42