-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathradicale.nix
38 lines (37 loc) · 976 Bytes
/
radicale.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ ... }:
{
services.radicale = {
enable = true;
settings = {
server.hosts = [ "0.0.0.0:5232" ];
auth = {
type = "htpasswd";
htpasswd_filename = "/etc/radicale/htpasswd";
htpasswd_encryption = "bcrypt";
};
};
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts = {
"plan.liv.town" = {
forceSSL = true;
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
# locations."/radicale/" = {
locations."/" = {
proxyPass = "http://127.0.0.1:5232/";
proxyWebsockets = true;
extraConfig = ''
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;
'';
};
};
};
};
}