Fixed read replicas
Some checks failed
trivy / Check (push) Failing after -7m49s

This commit is contained in:
mdecimus 2024-08-14 20:00:24 +02:00
parent e2eb851bfc
commit 79297c37b0
3 changed files with 9 additions and 3 deletions

View file

@ -505,6 +505,7 @@ impl Patterns {
Pattern::Include(MatchType::Equal("storage.fts".to_string())),
Pattern::Include(MatchType::Equal("storage.directory".to_string())),
Pattern::Include(MatchType::Equal("lookup.default.hostname".to_string())),
Pattern::Include(MatchType::Equal("enterprise.license-key".to_string())),
];
}

View file

@ -213,7 +213,7 @@ impl Stores {
}
}
#[cfg(feature = "enterprise")]
"composite-read" | "composite-blob" => {
"sql-read-replica" | "composite-blob" => {
composite_stores.push((store_id, protocol));
}
unknown => {

View file

@ -52,8 +52,8 @@ use utils::config::Config;
use crate::{add_test_certs, directory::DirectoryStore, store::TempDir, AssertConfig};
const SERVER: &str = r#"
[server]
hostname = "'imap.example.org'"
[lookup.default]
hostname = "imap.example.org"
[server.listener.imap]
bind = ["127.0.0.1:9991"]
@ -152,6 +152,11 @@ database = "stalwart"
user = "postgres"
password = "mysecretpassword"
[store."psql-replica"]
type = "sql-read-replica"
primary = "postgresql"
replicas = "postgresql"
[store."mysql"]
type = "mysql"
host = "localhost"