Merge pull request #5606 from ash-vd/fix/mongodb-config-with-ssl

fix(mongodb): Also apply custom config when SSL is enabled
This commit is contained in:
Andras Bacsai
2025-04-14 12:03:47 +02:00
committed by GitHub

View File

@@ -217,6 +217,10 @@ class StartMongodb
if ($this->database->enable_ssl) {
$commandParts = ['mongod'];
if (! empty($this->database->mongo_conf)) {
$commandParts = ['mongod', '--config', '/etc/mongo/mongod.conf'];
}
$sslConfig = match ($this->database->ssl_mode) {
'allow' => [
'--tlsMode=allowTLS',