Merge branch 'secureBroker' into 'main'

Secure broker

See merge request v3/service/configuration!36
This commit is contained in:
Sylvain Briat 2023-12-18 15:07:51 +00:00
commit 163977b3ed
4 changed files with 6 additions and 5 deletions

View File

@ -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

4
package-lock.json generated
View File

@ -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",

View File

@ -1,6 +1,6 @@
{
"name": "@mobicoop/configuration",
"version": "2.5.2",
"version": "2.5.3",
"description": "Mobicoop V3 Configuration Service",
"author": "sbriat",
"private": true,

View File

@ -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'