Adds vhost to the amqp config

parent 5a0b374f
......@@ -29,6 +29,7 @@ class AMQPConnector {
hostname: settings.amqp.hostname,
username: settings.amqp.user,
password: settings.amqp.password,
vhost: settings.amqp.vhost,
});
this._channel = await this._connection.createChannel();
}
......
......@@ -23,6 +23,7 @@ const leaderboardAlgorithm = process.env.LEADERBOARD_ALGORITHM || config.leaderb
const amqpProtocol = process.env.AMQP_PROTOCOL || 'amqp';
const amqpHostname = process.env.AMQP_HOSTNAME || 'localhost';
const amqpVhost = process.env.AMQP_VHOST || '/';
const amqpUser = process.env.AMQP_USER || 'guest';
const amqpPassword = process.env.AMQP_PASSWORD || 'guest';
......@@ -61,6 +62,7 @@ export const settings = {
amqp: {
protocol: amqpProtocol,
hostname: amqpHostname,
vhost: amqpVhost,
user: amqpUser,
password: amqpPassword,
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment