Change storage to sqlite + filesystem

This commit is contained in:
Gonne 2025-01-12 21:30:11 +01:00
parent 3b34a5cd58
commit 6fee31dcf1
2 changed files with 30 additions and 1 deletions

View file

@ -181,7 +181,7 @@ in {
"lookup.default.hostname"
"certificate.*"
] # the default ones
++ ["sieve.trusted.*"]; #for macros to be able to include our redirection script
++ ["sieve.trusted.scripts.*"]; #for macros to be able to include our redirection script
sieve.trusted.scripts.redirects.contents = "%{file:/tmp/virt_aliases}%"; # generated redirect script
session.data.script = "'redirects'";
@ -190,6 +190,13 @@ in {
# see passwd on azathoth for plaintext or machine secret in encoded format for HTTP Basic AUTH
secret = cfg.stalwartAdminHash;
};
store = {
# structured data in SQLite, blobs on filesystem
db.type = "sqlite";
db.path = "/var/lib/stalwart-mail/data/index.sqlite3";
fs.type = "fs";
fs.path = "/var/lib/stalwart-mail/data/blobs";
};
};
};
};