fix(admin-service): update MinIO default endpoint to oss.gogenex.com

将 FileStorageService 的默认连接参数从 localhost 更新为生产域名:
- endPoint 默认值: localhost → oss.gogenex.com
- port 默认值: 9000 → 443
- useSSL 默认值: false → true(?? 运算符保证未设置时默认开启)
- accessKey/secretKey 默认值更新为生产凭证

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-07 00:22:53 -08:00
parent 11bb88badd
commit 4c5f5e2cd9
1 changed files with 5 additions and 5 deletions

View File

@ -11,11 +11,11 @@ export class FileStorageService {
constructor() {
this.minio = new MinioClient({
endPoint: process.env.MINIO_ENDPOINT || 'localhost',
port: parseInt(process.env.MINIO_PORT || '9000', 10),
useSSL: process.env.MINIO_USE_SSL === 'true',
accessKey: process.env.MINIO_ACCESS_KEY || 'minioadmin',
secretKey: process.env.MINIO_SECRET_KEY || 'minioadmin',
endPoint: process.env.MINIO_ENDPOINT || 'oss.gogenex.com',
port: parseInt(process.env.MINIO_PORT || '443', 10),
useSSL: (process.env.MINIO_USE_SSL ?? 'true') === 'true',
accessKey: process.env.MINIO_ACCESS_KEY || 'genex-admin',
secretKey: process.env.MINIO_SECRET_KEY || 'genex-minio-secret',
});
}