Skip to content

Commit

Permalink
chore: PORT added from config
Browse files Browse the repository at this point in the history
  • Loading branch information
geeky-abhishek committed Nov 2, 2023
1 parent e59105b commit 1c2599a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/bff/src/minio/minio.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ export class MinioService {
public readonly minioClient: Minio.Client;

constructor(private configService: ConfigService) {
const port = this.configService.get('MINIO_PORT');
this.minioClient = new Minio.Client({
endPoint: this.configService.get('MINIO_URL'),
port: 443,
useSSL: true,
port: Number(port),
useSSL: Number(port) === 443 ? true : false,
accessKey: this.configService.get('MINIO_ACCESSKEY'),
secretKey: this.configService.get('MINIO_SECRET'),
});
Expand Down

0 comments on commit 1c2599a

Please sign in to comment.