minio
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions

This commit is contained in:
Dmitry 2025-12-19 04:52:42 +03:00
parent ac4e0919cf
commit 960b0f324a

View file

@ -1,3 +1,5 @@
import 'dart:io';
/// Configuration for MinIO connection /// Configuration for MinIO connection
class MinioConfig { class MinioConfig {
final String endpoint; final String endpoint;
@ -26,19 +28,12 @@ class MinioConfig {
factory MinioConfig.fromEnvironment() { factory MinioConfig.fromEnvironment() {
return MinioConfig( return MinioConfig(
endpoint: const String.fromEnvironment( endpoint: Platform.environment['MINIO_SERVER_URL']!,
'MINIO_SERVER_URL', port: int.parse(Platform.environment['MINIO_PORT'] ?? '443'),
defaultValue: accessKey: Platform.environment['SERVICE_USER_MINIO']!,
'minio-rsso80cks4ck4oc44s0og80c.147.45.152.129.sslip.io', secretKey: Platform.environment['SERVICE_PASSWORD_MINIO']!,
), useSSL: Platform.environment['MINIO_USE_SSL'] == 'true',
port: const int.fromEnvironment('MINIO_PORT', defaultValue: 443), region: Platform.environment['MINIO_REGION'] ?? 'us-east-1',
accessKey: const String.fromEnvironment('SERVICE_USER_MINIO'),
secretKey: const String.fromEnvironment('SERVICE_PASSWORD_MINIO'),
useSSL: const bool.fromEnvironment('MINIO_USE_SSL', defaultValue: true),
region: const String.fromEnvironment(
'MINIO_REGION',
defaultValue: 'us-east-1',
),
); );
} }
} }