Setup radicale on astral
This commit is contained in:
parent
b91fcb6500
commit
01015c19b9
4 changed files with 36 additions and 0 deletions
25
hosts/astral/radicale.nix
Normal file
25
hosts/astral/radicale.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ config, ... }:
|
||||
let domain = "radicale.leaf.ninja";
|
||||
in {
|
||||
age.secrets.radicale-htpasswd = {
|
||||
file = ./secrets/radicale-htpasswd;
|
||||
mode = "400";
|
||||
owner = "radicale";
|
||||
};
|
||||
|
||||
services.radicale = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server.hosts = [ "localhost:5232" ];
|
||||
auth = {
|
||||
type = "htpasswd";
|
||||
htpasswd_filename = config.age.secrets.radicale-htpasswd.path;
|
||||
htpasswd_encryption = "plain";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts.${domain}.extraConfig = ''
|
||||
reverse_proxy localhost:5232
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue