fix(mongodb): Also apply custom config when SSL is enabled
This commit is contained in:
@@ -217,6 +217,10 @@ class StartMongodb
|
|||||||
if ($this->database->enable_ssl) {
|
if ($this->database->enable_ssl) {
|
||||||
$commandParts = ['mongod'];
|
$commandParts = ['mongod'];
|
||||||
|
|
||||||
|
if (! empty($this->database->mongo_conf)) {
|
||||||
|
$commandParts = ['mongod', '--config', '/etc/mongo/mongod.conf'];
|
||||||
|
}
|
||||||
|
|
||||||
$sslConfig = match ($this->database->ssl_mode) {
|
$sslConfig = match ($this->database->ssl_mode) {
|
||||||
'allow' => [
|
'allow' => [
|
||||||
'--tlsMode=allowTLS',
|
'--tlsMode=allowTLS',
|
||||||
|
|||||||
Reference in New Issue
Block a user