2 last months
This commit is contained in:
parent
f845745874
commit
15b909473e
63 changed files with 963 additions and 1103 deletions
28
hosts/greatyamada/services/radicale.nix
Normal file
28
hosts/greatyamada/services/radicale.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ ... }:
|
||||
let
|
||||
radicalePath = "/mnt/Datos/radicale";
|
||||
nginxLocalServiceConfig = import ./nginx-local-config.nix;
|
||||
in {
|
||||
services = {
|
||||
radicale = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server.hosts = [ "127.0.0.1:5232" ];
|
||||
auth = {
|
||||
type = "htpasswd";
|
||||
htpasswd_filename = "/etc/radicale/users";
|
||||
htpasswd_encryption = "bcrypt";
|
||||
};
|
||||
storage.filesystem_folder = radicalePath;
|
||||
};
|
||||
};
|
||||
nginx.virtualHosts."radicale.rcia.dev" = {
|
||||
locations."/" = { proxyPass = "http://127.0.0.1:5232"; };
|
||||
extraConfig = nginxLocalServiceConfig;
|
||||
};
|
||||
};
|
||||
sops.secrets."radicale/users" = {
|
||||
path = "/etc/radicale/users";
|
||||
owner = "radicale";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue