fix(mongodb): Also apply custom config when SSL is enabled

This commit is contained in:
Ashwin van Dijk 2025-04-13 21:34:00 +02:00
parent 4a1f8e925f
commit de2bd160ff
No known key found for this signature in database
GPG key ID: 61F6E4EE4131A43F

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',