Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 986 Bytes

config.md

File metadata and controls

48 lines (40 loc) · 986 Bytes

Config

In the config directory add rabbitmq.js and copy

/** @type {import('@adonisjs/framework/src/Env')} */
const Env = use("Env");

/**
 * Rabbit MQ configuration.
 * description of configuration variables and their potential values.
 */
exports.config = {
  /**
   * application name.
   */
  app_name: Env.get("APP_NAME"),
  /**
   * Disable Rabbit MQ.
   */
  enabled: Env.get("RABBITMQ_ENABLED", true),

  /**
   * Level at which to log. 'trace' is lowest when diagnosing
   * issues with the agent, 'info' and higher will impose the least overhead on
   * production applications.
   */
  level: Env.get('RABBITMQ_LOG_LEVEL', 'info'),

  /**
   * Rabbit MQ HOST DETAILS.
   */
  host: Env.get('RABBITMQ_HOST'),
  port: Env.get('RABBITMQ_PORT'),
  username: Env.get('RABBITMQ_USERNAME'),
  password: Env.get('RABBITMQ_PASSWORD'),

};

In your .env file add the following variables

RABBITMQ_HOST= 
RABBITMQ_PORT=
RABBITMQ_USERNAME=
RABBITMQ_PASSWORD=