What have I set in Meteor Up in MONGO_OPLOG_URL?
I created a database and a user with oplog access in Compose.io.
The URI I get looks like this:
mongodb://<user>:<password>@lamppost.11.mongolayer.com:10022,lamppost.10.mongolayer.com:10024/cardmaker?replicaSet=set-<bunchOfDigits>
Knowing this, that I establish how MONGO_URL
and MONGO_OPLOG_URL
in mup.json
?
There is no documentation on this. :(
+3
source to share
1 answer
Let's say database name: mydatabase username: user password: 123456
It will look like this:
"MONGO_URL": "mongodb://user:123456@candidate.11.mongolayer.com:10240,candidate.0.mongolayer.com:10240/mydatabase?replicaSet=set-0123456789″,
"MONGO_OPLOG_URL": "mongodb://user:123456@candidate.11.mongolayer.com:10240,candidate.0.mongolayer.com:10240/local?authSource=mydatabase"
+5
source to share