Open sum35h opened 2 years ago
FYI, I tweaked the entrypoint.sh with the below line to get it to work.
mongo_state="$(mongo --host mongodb://<usr>:<pwd>@<host>appsmith?authSource=admin --tls --tlsCAFile /appsmith-stacks/rootCA.pem --tlsCertificateKeyFile /appsmith-stacks/mongodb.pem --quiet --eval "rs.status().ok")"
ok
Is there an existing issue for this?
Summary
Currently Appsmith does not support connection to custom mongoDB with the SSL since the java driver does not support the tls keys specified in the MongoDB URI.
APPSMITH_MONGODB_URI="mongodb://<usr>:<pwd>@sandbox-mongo.appsmith.com/appsmith?authSource=admin&tls=true&tlsCAFile=/appsmith-stacks/rootCA.pem&tlsCertificateKeyFile=/appsmith-stacks/mongodb.pem"
logs