mirror of
https://gitlab.com/mobicoop/v3/service/configuration.git
synced 2026-01-05 05:22:39 +00:00
Merge branch 'secureBroker' into 'main'
Secure broker See merge request v3/service/configuration!36
This commit is contained in:
@@ -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
4
package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mobicoop/configuration",
|
||||
"version": "2.5.2",
|
||||
"version": "2.5.3",
|
||||
"description": "Mobicoop V3 Configuration Service",
|
||||
"author": "sbriat",
|
||||
"private": true,
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user