Skip to content

Commit

Permalink
Added default config values
Browse files Browse the repository at this point in the history
  • Loading branch information
chandrangreat committed Aug 30, 2017
1 parent 361334d commit 5186171
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 5 additions & 2 deletions meta-api/config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
var config = {};

const AMQP_HTTP_URL = process.env.AMQP_HTTP_URL || 'http://localhost:15672';
const NEO4J_HTTP_URL = process.env.NEO4J_HTTP_URL || 'http://localhost:7474';

config.rabbitMQconfig = {
auth: {
"auth": {
"user": "guest",
"pass": "guest"
}
},
url: `${process.env.AMQP_HTTP_URL}/api/`
url: `${AMQP_HTTP_URL}/api/`
};

config.neo4jconfig = {
Expand All @@ -17,7 +20,7 @@ config.neo4jconfig = {
"pass": "password"
}
},
url: `${process.env.NEO4J_HTTP_URL}/db/manage/`
url: `${NEO4J_HTTP_URL}/db/manage/`
};

module.exports = config;
2 changes: 0 additions & 2 deletions meta-api/tests/controllers.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
var chai = require('chai');
var expect = chai.expect;
process.env.NEO4J_HTTP_URL = 'http://localhost:7474';
process.env.AMQP_HTTP_URL = 'http://localhost:15672';
var rabbitmqController = require('../controller/rabbitmq.controller');
var neo4jController = require('../controller/neo4j.controller');

Expand Down

0 comments on commit 5186171

Please sign in to comment.