forked from mirrors_public/oddlama_nix-config
chore: add some local keys to stalwart
This commit is contained in:
parent
6377ca3f47
commit
cff8867bad
1 changed files with 19 additions and 15 deletions
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue