vps: add radicale
This commit is contained in:
parent
dd9eb1dd3e
commit
dff5c6c440
2 changed files with 42 additions and 0 deletions
|
@ -20,5 +20,6 @@ with lib; {
|
||||||
./dufs.nix
|
./dufs.nix
|
||||||
./isso.nix
|
./isso.nix
|
||||||
./miniflux.nix
|
./miniflux.nix
|
||||||
|
./radicale.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
41
sys/platforms/vps/srv/radicale.nix
Normal file
41
sys/platforms/vps/srv/radicale.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; {
|
||||||
|
services = {
|
||||||
|
nginx = {
|
||||||
|
virtualHosts."dav.posixlycorrect.com" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_headers_hash_max_size 512;
|
||||||
|
proxy_headers_hash_bucket_size 128;
|
||||||
|
'';
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:5232";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
radicale = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
server = {
|
||||||
|
hosts = [ "127.0.0.1:5232" ];
|
||||||
|
};
|
||||||
|
auth = {
|
||||||
|
type = "htpasswd";
|
||||||
|
htpasswd_filename = "/var/trust/radicale/htpasswd";
|
||||||
|
htpasswd_encryption = "bcrypt";
|
||||||
|
};
|
||||||
|
storage = {
|
||||||
|
filesystem_folder = "/var/lib/radicale/collections";
|
||||||
|
};
|
||||||
|
web.type = "internal";
|
||||||
|
rights.type = "authenticated";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue