I have a Express.js application running on DO Apps Platform. I want to attach a Managed Mongo DB component to it but the DATABASE_URL is not connecting with the App.
I am getting this error
App starting error: MongooseServerSelectionError: self signed certificate in certificate chain
I know the reason behind this. Because i am not specifying the crt file. But i don’t know how to add the crt file in the production. If i just include it in the source files wouldn’t it be a security concern?
Is there any better way to attach mongoDB component to a DO Apps?
Note: I am using Node.js and Mongoose
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!