From d7b15786111a118143ebc6b121b17248e6724f78 Mon Sep 17 00:00:00 2001 From: Sylvain Briat Date: Mon, 18 Dec 2023 15:57:10 +0100 Subject: [PATCH] secure broker --- .env.dist | 2 +- src/config/broker.config.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.dist b/.env.dist index 6e6dc9c..785a04f 100644 --- a/.env.dist +++ b/.env.dist @@ -4,7 +4,7 @@ SERVICE_PORT=5003 HEALTH_SERVICE_PORT=6003 # MESSAGE BROKER -MESSAGE_BROKER_URI=amqp://v3-broker:5672 +MESSAGE_BROKER_URI=amqp://mobicoop:mobicoop@v3-broker:5672 MESSAGE_BROKER_EXCHANGE=mobicoop MESSAGE_BROKER_EXCHANGE_DURABILITY=true diff --git a/src/config/broker.config.ts b/src/config/broker.config.ts index 941a54e..d7389d4 100644 --- a/src/config/broker.config.ts +++ b/src/config/broker.config.ts @@ -1,7 +1,8 @@ import { registerAs } from '@nestjs/config'; export default registerAs('broker', () => ({ - uri: process.env.MESSAGE_BROKER_URI ?? 'amqp://v3-broker:5672', + uri: + process.env.MESSAGE_BROKER_URI ?? 'amqp://mobicoop:mobicoop@v3-broker:5672', exchange: process.env.MESSAGE_BROKER_EXCHANGE ?? 'mobicoop', durability: process.env.MESSAGE_BROKER_EXCHANGE_DURABILITY ? process.env.MESSAGE_BROKER_EXCHANGE_DURABILITY === 'false'