Commit c6c3e347 authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

Adds vhost to the amqp config

parent 5a0b374f
...@@ -29,6 +29,7 @@ class AMQPConnector { ...@@ -29,6 +29,7 @@ class AMQPConnector {
hostname: settings.amqp.hostname, hostname: settings.amqp.hostname,
username: settings.amqp.user, username: settings.amqp.user,
password: settings.amqp.password, password: settings.amqp.password,
vhost: settings.amqp.vhost,
}); });
this._channel = await this._connection.createChannel(); this._channel = await this._connection.createChannel();
} }
......
...@@ -23,6 +23,7 @@ const leaderboardAlgorithm = process.env.LEADERBOARD_ALGORITHM || config.leaderb ...@@ -23,6 +23,7 @@ const leaderboardAlgorithm = process.env.LEADERBOARD_ALGORITHM || config.leaderb
const amqpProtocol = process.env.AMQP_PROTOCOL || 'amqp'; const amqpProtocol = process.env.AMQP_PROTOCOL || 'amqp';
const amqpHostname = process.env.AMQP_HOSTNAME || 'localhost'; const amqpHostname = process.env.AMQP_HOSTNAME || 'localhost';
const amqpVhost = process.env.AMQP_VHOST || '/';
const amqpUser = process.env.AMQP_USER || 'guest'; const amqpUser = process.env.AMQP_USER || 'guest';
const amqpPassword = process.env.AMQP_PASSWORD || 'guest'; const amqpPassword = process.env.AMQP_PASSWORD || 'guest';
...@@ -61,6 +62,7 @@ export const settings = { ...@@ -61,6 +62,7 @@ export const settings = {
amqp: { amqp: {
protocol: amqpProtocol, protocol: amqpProtocol,
hostname: amqpHostname, hostname: amqpHostname,
vhost: amqpVhost,
user: amqpUser, user: amqpUser,
password: amqpPassword, 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