aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/websites/tools/dav/davical.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-16 15:31:07 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-16 16:11:15 +0100
commita95ab089420d6edf24f22500dabf7876d329dc91 (patch)
treeee769ebdc128d9ef34608462778d1b7f35ac5469 /nixops/modules/websites/tools/dav/davical.nix
parent7da3ceece7fe6c49046e97f37fc353db9b8a981c (diff)
downloadNix-a95ab089420d6edf24f22500dabf7876d329dc91.tar.gz
Nix-a95ab089420d6edf24f22500dabf7876d329dc91.tar.zst
Nix-a95ab089420d6edf24f22500dabf7876d329dc91.zip
Move tools websites to stable web directories
Diffstat (limited to 'nixops/modules/websites/tools/dav/davical.nix')
-rw-r--r--nixops/modules/websites/tools/dav/davical.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/nixops/modules/websites/tools/dav/davical.nix b/nixops/modules/websites/tools/dav/davical.nix
index 3f43607..6668fa1 100644
--- a/nixops/modules/websites/tools/dav/davical.nix
+++ b/nixops/modules/websites/tools/dav/davical.nix
@@ -89,14 +89,16 @@ let
89 buildInputs = [ gettext ]; 89 buildInputs = [ gettext ];
90 }; 90 };
91 webRoot = "${webapp}/htdocs"; 91 webRoot = "${webapp}/htdocs";
92 apache = { 92 apache = rec {
93 user = "wwwrun"; 93 user = "wwwrun";
94 group = "wwwrun"; 94 group = "wwwrun";
95 modules = [ "proxy_fcgi" ]; 95 modules = [ "proxy_fcgi" ];
96 webappName = "tools_davical";
97 root = "/run/current-system/webapps/${webappName}";
96 vhostConf = '' 98 vhostConf = ''
97 Alias /davical "${webRoot}" 99 Alias /davical "${root}"
98 Alias /caldav.php "${webRoot}/caldav.php" 100 Alias /caldav.php "${root}/caldav.php"
99 <Directory "${webRoot}"> 101 <Directory "${root}">
100 DirectoryIndex index.php index.html 102 DirectoryIndex index.php index.html
101 AcceptPathInfo On 103 AcceptPathInfo On
102 AllowOverride None 104 AllowOverride None