Quantcast
Channel: Łukasz Gozda Gandecki
Viewing all articles
Browse latest Browse all 10

node.js mongo-watch login to remote server with authentication

$
0
0
If you want to use https://github.com/TorchlightSoftware/mongo-watch npm package, you might be surprised that the documentation doesn’t talk about connecting to remote servers. Read more for a short snippet that allows you to do just that. var MongoWatch = require(“mongo-watch”); var _watcher = new MongoWatch({ format: ‘pretty’, db: ‘<dbYouWantToMonitor>’, username: “<oplogUsername>”, password: “<password>”, host: “<ipAddress>”, port: “<port>” }); … Continue reading node.js mongo-watch login to remote server with authentication

Viewing all articles
Browse latest Browse all 10

Trending Articles