Caldav (wip mail)

This commit is contained in:
Henry Hiles 2025-03-24 21:40:42 -04:00
parent 5c69ae8390
commit edbef36e0e
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
9 changed files with 134 additions and 4 deletions

View file

@ -1,4 +1,7 @@
{
services.caddy.enable = true;
services.caddy = {
enable = true;
email = "henry@henryhiles.com";
};
networking.firewall.allowedTCPPorts = [80 443];
}

View file

@ -0,0 +1,13 @@
{config, ...}: {
services = {
radicale = {
enable = true;
settings.auth = {
type = "htpasswd";
htpasswd_filename = config.age.secrets."caldavUsers.age".path;
htpasswd_encryption = "htpasswd";
};
};
caddy.virtualHosts."dav.henryhiles.com".extraConfig = "reverse_proxy localhost:5232";
};
}

View file

@ -0,0 +1,24 @@
{
config,
inputs,
...
}: {
# imports = [inputs.simple-nixos-mailserver.nixosModule];
# mailserver = {
# enable = true;
# fqdn = "mail2.henryhiles.com";
# domains = ["mail2.henryhiles.com"];
# loginAccounts = {
# "henry@henryhiles.com" = {
# hashedPasswordFile = config.age.secrets."mailPassword.age".path;
# aliases = ["contact@henryhiles.com"];
# };
# };
# certificateScheme = "acme";
# };
# services.caddy.virtualHosts."mail2.henryhiles.com" = {}; # To get Let's Encrypt cert
}

View file

@ -10,6 +10,6 @@
};
};
caddy.virtualHosts."vaultwarden.henryhiles.com".extraConfig = "reverse_proxy 127.0.0.1:8000";
caddy.virtualHosts."vaultwarden.henryhiles.com".extraConfig = "reverse_proxy localhost:8000";
};
}