diff options
Diffstat (limited to 'nixops/modules/websites/tools/dav/infcloud.nix')
-rw-r--r-- | nixops/modules/websites/tools/dav/infcloud.nix | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/nixops/modules/websites/tools/dav/infcloud.nix b/nixops/modules/websites/tools/dav/infcloud.nix deleted file mode 100644 index f1204ab..0000000 --- a/nixops/modules/websites/tools/dav/infcloud.nix +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | { stdenv, fetchzip, ed }: | ||
2 | let | ||
3 | infcloud = rec { | ||
4 | webRoot = stdenv.mkDerivation rec { | ||
5 | version = "0.13.1"; | ||
6 | name = "InfCloud-${version}"; | ||
7 | src = fetchzip { | ||
8 | url = "https://www.inf-it.com/InfCloud_${version}.zip"; | ||
9 | sha256 = "1fjhs0cj0b9fhf5ysfz281mknmmg1z551bas143sxfcqlpa5aiiq"; | ||
10 | }; | ||
11 | buildPhase = '' | ||
12 | ./cache_update.sh | ||
13 | rm config.js | ||
14 | ''; | ||
15 | installPhase = '' | ||
16 | cp -a . $out | ||
17 | ln -s ${./infcloud_config.js} $out/config.js | ||
18 | ''; | ||
19 | buildInputs = [ ed ]; | ||
20 | }; | ||
21 | apache = rec { | ||
22 | user = "wwwrun"; | ||
23 | group = "wwwrun"; | ||
24 | webappName = "tools_infcloud"; | ||
25 | root = "/run/current-system/webapps/${webappName}"; | ||
26 | vhostConf = '' | ||
27 | Alias /carddavmate ${root} | ||
28 | Alias /caldavzap ${root} | ||
29 | Alias /infcloud ${root} | ||
30 | <Directory ${root}> | ||
31 | AllowOverride All | ||
32 | Options FollowSymlinks | ||
33 | Require all granted | ||
34 | DirectoryIndex index.html | ||
35 | </Directory> | ||
36 | ''; | ||
37 | }; | ||
38 | }; | ||
39 | in | ||
40 | infcloud | ||