vps: add roundcube

This commit is contained in:
Fabian Montero 2024-11-21 18:03:51 -06:00
parent edae8a4dea
commit 4573eb70ff
2 changed files with 52 additions and 0 deletions

View file

@ -21,5 +21,6 @@ with lib; {
./paperless.nix
./trilium.nix
./firefly.nix
./roundcube.nix
];
}

View file

@ -0,0 +1,51 @@
{
lib,
pkgs,
...
}:
with lib; {
services = {
nginx = {
virtualHosts."mail.posixlycorrect.com" = {
enableACME = true;
forceSSL = true;
extraConfig = ''
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 128;
'';
};
};
roundcube = {
enable = true;
hostName = "mail.posixlycorrect.com";
configureNginx = true;
maxAttachmentSize = 2048; #MB
plugins = [
"archive"
"attachment_reminder"
"carddav"
"contextmenu"
"custom_from"
"emoticons"
"enigma"
"hide_blockquote"
"managesieve"
"markasjunk"
"newmail_notifier"
"password"
"persistent_login"
"reconnect"
"show_additional_headers"
"userinfo"
"vcard_attachments"
"zipdownload"
];
dicts = with pkgs.aspellDicts; [
es
en
];
};
};
}