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
commit 3701c18906
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -217,6 +217,10 @@ public function handle(StandaloneMongodb $database)
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',