Caldav (wip mail)
This commit is contained in:
parent
5c69ae8390
commit
edbef36e0e
9 changed files with 134 additions and 4 deletions
|
@ -1,4 +1,7 @@
|
|||
{
|
||||
services.caddy.enable = true;
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
email = "henry@henryhiles.com";
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [80 443];
|
||||
}
|
||||
|
|
13
clients/quadraticserver/caldav.nix
Normal file
13
clients/quadraticserver/caldav.nix
Normal 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";
|
||||
};
|
||||
}
|
24
clients/quadraticserver/mail.nix
Normal file
24
clients/quadraticserver/mail.nix
Normal 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
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue