mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
enable rspamd
This commit is contained in:
parent
ff990ac5ba
commit
d031f5e5b3
4 changed files with 16 additions and 4 deletions
|
@ -51,7 +51,7 @@
|
|||
# Enable the OpenSSH daemon.
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
passwordAuthentication = false;
|
||||
settings.PasswordAuthentication = false;
|
||||
};
|
||||
users.users.root.openssh.authorizedKeys.keyFiles = [
|
||||
#../../keys/ssh/rouven-thinkpad
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ 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";
|
||||
|
@ -14,4 +15,14 @@
|
|||
};
|
||||
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:/";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue