1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

chore: add some local keys to stalwart

This commit is contained in:
oddlama 2025-09-14 15:08:52 +02:00
parent 6377ca3f47
commit cff8867bad
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -68,6 +68,7 @@ in
in in
lib.mkForce { lib.mkForce {
config.local-keys = [ config.local-keys = [
"config.local-keys.*"
"store.*" "store.*"
"directory.*" "directory.*"
"tracer.*" "tracer.*"
@ -85,6 +86,9 @@ in
"certificate.*" "certificate.*"
"auth.dkim.*" "auth.dkim.*"
"signature.*" "signature.*"
"imap.*"
"session.*"
"resolver.*"
]; ];
authentication.fallback-admin = { authentication.fallback-admin = {
@ -518,21 +522,21 @@ in
keepalive 2; keepalive 2;
''; '';
}; };
virtualHosts = virtualHosts = {
{ ${stalwartDomain} = {
${stalwartDomain} = { forceSSL = true;
forceSSL = true; useACMEWildcardHost = true;
useACMEWildcardHost = true; extraConfig = ''
extraConfig = '' client_max_body_size 512M;
client_max_body_size 512M; '';
''; locations."/" = {
locations."/" = { proxyPass = "http://stalwart";
proxyPass = "http://stalwart"; proxyWebsockets = true;
proxyWebsockets = true;
};
}; };
} };
// lib.genAttrs }
//
lib.genAttrs
[ [
"autoconfig.${primaryDomain}" "autoconfig.${primaryDomain}"
"autodiscover.${primaryDomain}" "autodiscover.${primaryDomain}"
@ -579,7 +583,7 @@ in
ReadWritePaths = [ config.services.idmail.dataDir ]; ReadWritePaths = [ config.services.idmail.dataDir ];
ExecStart = lib.mkForce [ ExecStart = lib.mkForce [
"" ""
"${cfg.package}/bin/stalwart-mail --config=/run/stalwart-mail/config.toml" "${lib.getExe cfg.package} --config=/run/stalwart-mail/config.toml"
]; ];
RestartSec = "60"; # Retry every minute RestartSec = "60"; # Retry every minute
}; };