mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-27 16:20:04 +00:00
Initial Commit/ gateway-input-microservice-implementation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { join } from 'path';
|
||||
import { ClientOptions, Transport } from '@nestjs/microservices';
|
||||
|
||||
export const GrpcClientConfiguration: ClientOptions = {
|
||||
transport: Transport.GRPC,
|
||||
options: {
|
||||
//url: `${process.env.USERS_SVC_URL}:${process.env.USERS_SVC_PORT}`,
|
||||
url: `127.0.0.1:50052`,
|
||||
package: 'user',
|
||||
protoPath: join(__dirname, '..', 'proto', 'user.proto'),
|
||||
loader: {
|
||||
enums: String,
|
||||
objects: true,
|
||||
arrays: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user