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

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