Setup radicale on astral
This commit is contained in:
parent
b91fcb6500
commit
01015c19b9
4 changed files with 36 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
agenix.nixosModules.default
|
||||
./forgejo.nix
|
||||
./links.nix
|
||||
./radicale.nix
|
||||
./vaultwarden.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
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
|
||||
'';
|
||||
}
|
||||
9
hosts/astral/secrets/radicale-htpasswd
Normal file
9
hosts/astral/secrets/radicale-htpasswd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 f+PJrQ pKqLrqz0R7kAzNQZ3ChRsoWa63JEN2H2KHtGguF5nSc
|
||||
6Mk1qDWKx26jPdEzaVMh0vgUeVWjAGcmIPpvSU8BFNE
|
||||
-> ssh-ed25519 nz/vnw 0PuVNQ97Qa6iCk4pPf34lgS1aPb4CeDB4Qclk5F24T4
|
||||
OwJOYMTlTY9+Pj/BwG09z4q2/QViii710Kh3xPU5FRA
|
||||
--- mSdutlC3gFq8lDjeOGqi361i+DUI1Yg6Bpl7hCfznJA
|
||||
“ÜtQÆ/í rNeKeíé¸Ñ¥Äè~ˆý¾×Ÿ{_¡o
|
||||
y_Ü}‹¸Ã»P*W5<57>»´õFû.ECø¡‘Z©å#;
|
||||
£¢ð§Ûli…Ô§±*´Î]yT
|
||||
Loading…
Add table
Add a link
Reference in a new issue