Browse Source

🔧 chore(files): update minio service configuration

- change environment variable from MINIO_ENDPOINT to MINIO_HOST for consistency
- update default port from 9000 to 443 to align with standard HTTPS port
- modify useSSL logic to default to true when MINIO_USE_SSL is not 'false'
yourname 8 months ago
parent
commit
77a01c111b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/server/modules/files/minio.service.ts

+ 3 - 3
src/server/modules/files/minio.service.ts

@@ -8,9 +8,9 @@ export class MinioService {
 
   constructor() {
     this.client = new Client({
-      endPoint: process.env.MINIO_ENDPOINT || 'localhost',
-      port: parseInt(process.env.MINIO_PORT || '9000'),
-      useSSL: process.env.MINIO_USE_SSL === 'true',
+      endPoint: process.env.MINIO_HOST || 'localhost',
+      port: parseInt(process.env.MINIO_PORT || '443'),
+      useSSL: process.env.MINIO_USE_SSL !== 'false',
       accessKey: process.env.MINIO_ACCESS_KEY || 'minioadmin',
       secretKey: process.env.MINIO_SECRET_KEY || 'minioadmin'
     });