Compare commits
2 commits
79d75bb7c2
...
4e4795cc88
Author | SHA1 | Date | |
---|---|---|---|
4e4795cc88 |
|||
35f32fe673 |
2 changed files with 6 additions and 20 deletions
|
@ -30,11 +30,4 @@ in {
|
||||||
# "mail.charlieroot.dev" = mkAcmeCert "mail.charlieroot.dev";
|
# "mail.charlieroot.dev" = mkAcmeCert "mail.charlieroot.dev";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.appendConfig = ''
|
|
||||||
location /.well-known/acme-challenge/ {
|
|
||||||
rewrite /.well-known/acme-challenge/(.*) /$1 break;
|
|
||||||
root /var/lib/acme/.well-known/acme-challenge;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,17 +55,17 @@ in {
|
||||||
# and is used by mail clients to send email to mail servers.
|
# and is used by mail clients to send email to mail servers.
|
||||||
|
|
||||||
submissions = {
|
submissions = {
|
||||||
bind = ["localhost::465" "[::]:465"];
|
bind = ["localhost:465" "[::]:465"];
|
||||||
protocol = "smtp";
|
protocol = "smtp";
|
||||||
tls.implicit = true;
|
tls.implicit = true;
|
||||||
};
|
};
|
||||||
imaps = {
|
imaps = {
|
||||||
bind = ["localhost::993" "[::]:993"];
|
bind = ["localhost:993" "[::]:993"];
|
||||||
protocol = "imap";
|
protocol = "imap";
|
||||||
tls.implicit = true;
|
tls.implicit = true;
|
||||||
};
|
};
|
||||||
jmap = {
|
jmap = {
|
||||||
bind = ["localhost::8080" "[::]:8080"];
|
bind = ["localhost:8080" "[::]:8080"];
|
||||||
url = "https://mail.${domain}";
|
url = "https://mail.${domain}";
|
||||||
protocol = "jmap";
|
protocol = "jmap";
|
||||||
tls.implicit = true;
|
tls.implicit = true;
|
||||||
|
@ -91,7 +91,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
store = {
|
store = {
|
||||||
postgresql = {
|
"postgresql" = {
|
||||||
# Specifies the database type, set to "postgresql" for PostgreSQL.
|
# Specifies the database type, set to "postgresql" for PostgreSQL.
|
||||||
type = "postgresql";
|
type = "postgresql";
|
||||||
|
|
||||||
|
@ -102,17 +102,10 @@ in {
|
||||||
port = "5432";
|
port = "5432";
|
||||||
|
|
||||||
# Name of the database to connect to.
|
# Name of the database to connect to.
|
||||||
# TODO: add this to PostgreSQL.
|
database = "stalwart";
|
||||||
name = "stalwart";
|
|
||||||
|
|
||||||
# The username used for authentication with the PostgreSQL server.
|
# The username used for authentication with the PostgreSQL server.
|
||||||
# TODO: add this to PostgreSQL.
|
user = "stalwart";
|
||||||
username = "stalwart";
|
|
||||||
|
|
||||||
# Compression algorithm to use.
|
|
||||||
compression = "lz4";
|
|
||||||
# Clean up every day at 5:30am local time.
|
|
||||||
purge.frequency = "30 5 *";
|
|
||||||
|
|
||||||
# Enable TLS
|
# Enable TLS
|
||||||
tls.enable = true;
|
tls.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue