]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add DAV landing page
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 10 Feb 2020 16:03:32 +0000 (17:03 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 10 Feb 2020 16:03:32 +0000 (17:03 +0100)
modules/private/websites/tools/dav/default.nix
modules/private/websites/tools/dav/www/index.html [new file with mode: 0644]

index d30c04a9e5616b6be3d35b2c6cf476b0a954d7b7..c74930a90a8f96260742d2fbf42dc3ab80e7aec5 100644 (file)
@@ -35,7 +35,7 @@ in {
       certName    = "eldiron";
       addToCerts  = true;
       hosts       = ["dav.immae.eu" ];
-      root        = null;
+      root        = "/run/current-system/webapps/_dav";
       extraConfig = [
         infcloud.vhostConf
         davical.apache.vhostConf
@@ -46,6 +46,7 @@ in {
       davical = davical.phpFpm.pool;
     };
 
+    myServices.websites.webappDirs._dav = ./www;
     myServices.websites.webappDirs."${davical.apache.webappName}" = davical.webRoot;
     myServices.websites.webappDirs."${infcloud.webappName}" = pkgs.webapps.infcloud;
   };
diff --git a/modules/private/websites/tools/dav/www/index.html b/modules/private/websites/tools/dav/www/index.html
new file mode 100644 (file)
index 0000000..91c25ba
--- /dev/null
@@ -0,0 +1,42 @@
+<!doctype html>
+<html lang="fr">
+  <head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Dav configuration</title>
+    <style type="text/css">
+      body {
+        padding-top: 1em;
+        padding-left: 5px;
+        padding-right: 5px;
+        text-align: left;
+        margin: auto;
+        font: 20px Helvetica, sans-serif;
+        color: #333;
+        height: 100%;
+        min-height: 100%;
+      }
+      span.code {
+        font-family: monospace;
+      }
+    </style>
+  </head>
+  <body>
+    <p>
+      Dav configuration:
+      <ul>
+        <li>Server: <span class="code">https://dav.immae.eu/caldav.php</span>
+        </li>
+      </ul>
+    </p>
+    <p>Clients:
+      <ul>
+        <li><a href="/infcloud">Infcloud (calendar, address book, todo lists)</a></li>
+        <li><a href="/carddavmate">Carddavmate (address book)</a></li>
+        <li><a href="/caldavzap">Caldavzap (calendar, todo lists)</a></li>
+        <li><a href="/davical">Davical (Manage dav account)</a></li>
+      </ul>
+    </p>
+  </body>
+</html>
+