Skip to content

Instantly share code, notes, and snippets.

@gergelyke
Created December 11, 2014 12:54
Show Gist options
  • Save gergelyke/56665b974e90378b5c35 to your computer and use it in GitHub Desktop.
Save gergelyke/56665b974e90378b5c35 to your computer and use it in GitHub Desktop.
Hapi config
var Hapi = require('hapi');
var config = {
dbConnection: 'mongodb://db1.example.net,db2.example.net:2500/?replicaSet=test'
};
var server = new Hapi.Server({
app: config
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment