mirror of
https://gitlab.com/mobicoop/v3/service/configuration.git
synced 2026-01-11 23:52:39 +00:00
extract config files
This commit is contained in:
@@ -16,12 +16,10 @@ const imports = [
|
||||
useFactory: async (
|
||||
configService: ConfigService,
|
||||
): Promise<MessageBrokerModuleOptions> => ({
|
||||
uri: configService.get<string>('MESSAGE_BROKER_URI') as string,
|
||||
uri: configService.get<string>('broker.uri') as string,
|
||||
exchange: {
|
||||
name: configService.get<string>('MESSAGE_BROKER_EXCHANGE') as string,
|
||||
durable: configService.get<boolean>(
|
||||
'MESSAGE_BROKER_EXCHANGE_DURABILITY',
|
||||
) as boolean,
|
||||
name: configService.get<string>('broker.exchange') as string,
|
||||
durable: configService.get<boolean>('broker.durability') as boolean,
|
||||
},
|
||||
name: SERVICE_NAME,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user