mirror of
https://github.com/dadosfera/maestro.git
synced 2026-09-27 18:14:48 +00:00
24 lines
576 B
TypeScript
24 lines
576 B
TypeScript
import { credentials } from '@grpc/grpc-js';
|
|
import { ClientOptions, Transport } from '@nestjs/microservices';
|
|
|
|
import { InputProtofile } from '@victorradael/protospack';
|
|
|
|
export class InputsClientConfiguration {
|
|
config(): ClientOptions {
|
|
return {
|
|
transport: Transport.GRPC,
|
|
options: {
|
|
url: process.env.INFACTORY_URL,
|
|
package: 'input',
|
|
credentials: credentials.createSsl(),
|
|
protoPath: InputProtofile,
|
|
loader: {
|
|
enums: String,
|
|
objects: true,
|
|
arrays: true,
|
|
},
|
|
},
|
|
};
|
|
}
|
|
}
|