How do I specify the crt file location on App platform for my Mongodb connection string? I can’t use environmental variables as the Mongodb connection string needs a file.
I don’t want to build into my docker image for security reasons. What is the best solution please?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
One way to achieve this would be to create the CA certificate file in your app’s code directly right before initializing the MongoDB connection.
For example, if you are using NodeJS, it would look something like this:
fs.writeFileSync(path.resolve(__dirname, "mongodb.ca.crt"), process.env.CA_CERT)
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.