Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

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

Ashwin van Dijkde2bd160ff88
diff --git a/app/Actions/Database/StartMongodb.php b/app/Actions/Database/StartMongodb.php
index a42f03eb57..870b5b7e5a 100644
--- a/app/Actions/Database/StartMongodb.php
+++ b/app/Actions/Database/StartMongodb.php
@@ -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',