stalwart: progress
This commit is contained in:
parent
6d4540dd25
commit
79d75bb7c2
1 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
domain = "mail.charlieroot.dev";
|
domain = "charlieroot.dev";
|
||||||
|
|
||||||
cfg = config.modules.system.services.stalwart;
|
cfg = config.modules.system.services.stalwart;
|
||||||
in {
|
in {
|
||||||
|
@ -66,7 +66,7 @@ in {
|
||||||
};
|
};
|
||||||
jmap = {
|
jmap = {
|
||||||
bind = ["localhost::8080" "[::]:8080"];
|
bind = ["localhost::8080" "[::]:8080"];
|
||||||
url = "https://${domain}";
|
url = "https://mail.${domain}";
|
||||||
protocol = "jmap";
|
protocol = "jmap";
|
||||||
tls.implicit = true;
|
tls.implicit = true;
|
||||||
};
|
};
|
||||||
|
@ -77,7 +77,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
lookup.default = {
|
lookup.default = {
|
||||||
hostname = domain;
|
hostname = "mail.${domain}";
|
||||||
inherit domain;
|
inherit domain;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -122,7 +122,7 @@ in {
|
||||||
};
|
};
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts.${domain} = {
|
virtualHosts."mail.${domain}" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue