Add support for connecting to MongoDB Atlas
This commit is contained in:
parent
2e8230ee60
commit
503e8e34dd
|
@ -17,6 +17,7 @@ pnpm-debug.log*
|
|||
.env
|
||||
.env.production
|
||||
config.json
|
||||
certs/
|
||||
|
||||
# macOS-specific files
|
||||
.DS_Store
|
||||
|
|
|
@ -2,7 +2,9 @@ import { MongoClient } from "mongodb";
|
|||
import config from '../../../config.json'
|
||||
|
||||
const uri = config.MONGODB_URI;
|
||||
const options = {};
|
||||
const options = {
|
||||
tlsCertificateKeyFile: config.MONGODB_CERT
|
||||
};
|
||||
|
||||
const mongo = new MongoClient(uri, options);
|
||||
|
||||
|
|
Loading…
Reference in New Issue