From d7b15786111a118143ebc6b121b17248e6724f78 Mon Sep 17 00:00:00 2001 From: Sylvain Briat Date: Mon, 18 Dec 2023 15:57:10 +0100 Subject: [PATCH 1/2] 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' From 4f616e8ddcee3e93afa963b5f5da8f4d9610b6c4 Mon Sep 17 00:00:00 2001 From: Sylvain Briat Date: Mon, 18 Dec 2023 15:57:15 +0100 Subject: [PATCH 2/2] 2.5.3 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index c327a2a..3d7828a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mobicoop/configuration", - "version": "2.5.2", + "version": "2.5.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mobicoop/configuration", - "version": "2.5.2", + "version": "2.5.3", "license": "AGPL", "dependencies": { "@grpc/grpc-js": "^1.9.9", diff --git a/package.json b/package.json index 5a04e46d..c5a9f12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mobicoop/configuration", - "version": "2.5.2", + "version": "2.5.3", "description": "Mobicoop V3 Configuration Service", "author": "sbriat", "private": true,