2022-06-29 02:30:10 +00:00
|
|
|
import { Module } from '@nestjs/common';
|
|
|
|
import { AppController } from './app.controller';
|
2022-07-25 04:38:48 +00:00
|
|
|
import { ClientsModule, Transport } from '@nestjs/microservices';
|
2022-06-29 02:30:10 +00:00
|
|
|
import { AppService } from './app.service';
|
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [
|
|
|
|
ClientsModule.register([
|
|
|
|
{
|
2022-07-25 04:38:48 +00:00
|
|
|
name: 'SERVICIO_USUARIOS',
|
2022-06-29 02:30:10 +00:00
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
2022-07-25 04:38:48 +00:00
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 3001,
|
|
|
|
},
|
|
|
|
},
|
2022-06-29 09:23:07 +00:00
|
|
|
]),
|
2022-06-29 10:12:27 +00:00
|
|
|
ClientsModule.register([
|
|
|
|
{
|
2022-07-25 04:38:48 +00:00
|
|
|
name: 'SERVICIO_COMUNIDADES',
|
2022-06-29 10:12:27 +00:00
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
2022-07-25 04:38:48 +00:00
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 3002,
|
|
|
|
},
|
|
|
|
},
|
2022-06-29 10:12:27 +00:00
|
|
|
]),
|
2022-07-01 07:39:52 +00:00
|
|
|
ClientsModule.register([
|
|
|
|
{
|
2022-07-25 04:38:48 +00:00
|
|
|
name: 'SERVICIO_AREAS_COMUNES',
|
2022-07-01 07:39:52 +00:00
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
2022-07-25 04:38:48 +00:00
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 3003,
|
|
|
|
},
|
|
|
|
},
|
2022-07-01 07:39:52 +00:00
|
|
|
]),
|
2022-07-01 09:09:48 +00:00
|
|
|
ClientsModule.register([
|
|
|
|
{
|
2022-07-25 04:38:48 +00:00
|
|
|
name: 'SERVICIO_INVITADOS',
|
2022-07-01 09:09:48 +00:00
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
2022-07-25 04:38:48 +00:00
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 3004,
|
|
|
|
},
|
|
|
|
},
|
2022-07-01 09:09:48 +00:00
|
|
|
]),
|
2022-07-01 09:48:27 +00:00
|
|
|
ClientsModule.register([
|
|
|
|
{
|
2022-07-25 04:38:48 +00:00
|
|
|
name: 'SERVICIO_PAGOS',
|
2022-07-01 09:48:27 +00:00
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
2022-07-25 04:38:48 +00:00
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 3005,
|
|
|
|
},
|
|
|
|
},
|
2022-07-01 09:48:27 +00:00
|
|
|
]),
|
2022-07-01 10:15:02 +00:00
|
|
|
ClientsModule.register([
|
|
|
|
{
|
2022-07-25 04:38:48 +00:00
|
|
|
name: 'SERVICIO_RESERVACIONES',
|
2022-07-01 10:15:02 +00:00
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
2022-07-25 04:38:48 +00:00
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 3006,
|
|
|
|
},
|
|
|
|
},
|
2022-07-01 10:15:02 +00:00
|
|
|
]),
|
|
|
|
ClientsModule.register([
|
|
|
|
{
|
2022-07-25 04:38:48 +00:00
|
|
|
name: 'SERVICIO_POSTS',
|
2022-07-01 10:15:02 +00:00
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
2022-07-25 04:38:48 +00:00
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 3007,
|
|
|
|
},
|
|
|
|
},
|
2022-07-01 10:15:02 +00:00
|
|
|
]),
|
2022-07-25 04:38:48 +00:00
|
|
|
ClientsModule.register([
|
2022-07-01 10:15:02 +00:00
|
|
|
{
|
2022-07-25 04:38:48 +00:00
|
|
|
name: 'SERVICIO_REPORTES',
|
2022-07-01 10:15:02 +00:00
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
2022-07-25 04:38:48 +00:00
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 3008,
|
|
|
|
},
|
|
|
|
},
|
2022-07-01 10:15:02 +00:00
|
|
|
]),
|
2022-07-01 09:59:39 +00:00
|
|
|
ClientsModule.register([
|
|
|
|
{
|
2022-07-25 04:38:48 +00:00
|
|
|
name: 'SERVICIO_NOTIFICACIONES',
|
2022-07-01 09:59:39 +00:00
|
|
|
transport: Transport.TCP,
|
|
|
|
options: {
|
2022-07-25 04:38:48 +00:00
|
|
|
host: '127.0.0.1',
|
|
|
|
port: 3009,
|
|
|
|
},
|
|
|
|
},
|
2022-07-01 09:59:39 +00:00
|
|
|
]),
|
2022-06-29 02:30:10 +00:00
|
|
|
],
|
|
|
|
controllers: [AppController],
|
|
|
|
providers: [AppService],
|
|
|
|
})
|
|
|
|
export class AppModule {}
|