35 lines
727 B
Nix
35 lines
727 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.roundcube = {
|
|
enable = true;
|
|
hostName = "_";
|
|
|
|
plugins = [ "multiple_accounts" ];
|
|
|
|
extraConfig = ''
|
|
# PurelyMail is the entreprise who host my mail
|
|
$config['default_host'] = 'ssl://imap.purelymail.com';
|
|
$config['default_port'] = 993;
|
|
$config['smtp_server'] = 'tls://smtp.purelymail.com';
|
|
$config['smtp_port'] = 465;
|
|
$config['smtp_user'] = '%u';
|
|
$config['smtp_pass'] = '%p';
|
|
'';
|
|
};
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
|
|
virtualHosts."_" = {
|
|
listen = [
|
|
{ addr = "0.0.0.0"; port = 1984; }
|
|
];
|
|
forceSSL = false;
|
|
enableACME = false;
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 1984 ];
|
|
|
|
}
|