mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-11 22:49:07 +00:00
26 lines
624 B
TypeScript
26 lines
624 B
TypeScript
import { ClientOptions, Transport } from '@nestjs/microservices';
|
|
import {
|
|
PipelinePackages,
|
|
PipelineProtoFilePath,
|
|
} from '@victorradael/protospack';
|
|
import { credentials } from '@grpc/grpc-js';
|
|
|
|
export class PipelinesClientConfiguration {
|
|
config(): ClientOptions {
|
|
return {
|
|
transport: Transport.GRPC,
|
|
options: {
|
|
url: process.env.PIFACTORY_URL,
|
|
package: PipelinePackages,
|
|
credentials: credentials.createSsl(),
|
|
protoPath: PipelineProtoFilePath,
|
|
loader: {
|
|
enums: String,
|
|
objects: true,
|
|
arrays: true,
|
|
},
|
|
},
|
|
};
|
|
}
|
|
}
|