2022-06-29 02:30:10 +00:00
|
|
|
import { Module } from '@nestjs/common';
|
|
|
|
import { AppController } from './app.controller';
|
|
|
|
import { ClientsModule, Transport } from "@nestjs/microservices";
|
|
|
|
import { AppService } from './app.service';
|
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [
|
|
|
|
ClientsModule.register([
|
|
|
|
{
|
2022-06-29 09:23:07 +00:00
|
|
|
name: "SERVICIO_USUARIOS",
|
2022-06-29 02:30:10 +00:00
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
|
|
|
host: "127.0.0.1",
|
2022-06-29 09:23:07 +00:00
|
|
|
port: 3001
|
2022-06-29 02:30:10 +00:00
|
|
|
}
|
|
|
|
}
|
2022-06-29 09:23:07 +00:00
|
|
|
]),
|
|
|
|
|
2022-06-29 02:30:10 +00:00
|
|
|
],
|
|
|
|
controllers: [AppController],
|
|
|
|
providers: [AppService],
|
|
|
|
})
|
|
|
|
export class AppModule {}
|