diff options
Diffstat (limited to 'nixops/modules/websites/tools/dav/davical.nix')
-rw-r--r-- | nixops/modules/websites/tools/dav/davical.nix | 10 |
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 |