mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 21:33:11 +01:00
29 lines
768 B
Nix
29 lines
768 B
Nix
{ config, ... }:
|
|
{
|
|
sops.secrets."mail/rouven".owner = config.users.users.postfix.name;
|
|
sops.secrets."rspamd".owner = config.users.users.rspamd.name;
|
|
mailserver = rec {
|
|
enable = true;
|
|
fqdn = "mail.rfive.de";
|
|
domains = [ "rfive.de" ];
|
|
loginAccounts = {
|
|
"rouven@rfive.de" = {
|
|
name = "Rouven Seifert";
|
|
hashedPasswordFile = config.sops.secrets."mail/rouven".path;
|
|
|
|
};
|
|
};
|
|
certificateScheme = 3;
|
|
};
|
|
services.rspamd.locals."worker-controller.inc".source = config.sops.secrets."rspamd".path;
|
|
services.nginx.virtualHosts."rspamd.rfive.de" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations = {
|
|
"/" = {
|
|
proxyPass = "http://unix:/run/rspamd/worker-controller.sock:/";
|
|
};
|
|
};
|
|
};
|
|
}
|