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
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:
parent
ac4e0919cf
commit
960b0f324a
1 changed files with 8 additions and 13 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import 'dart:io';
|
||||
|
||||
/// Configuration for MinIO connection
|
||||
class MinioConfig {
|
||||
final String endpoint;
|
||||
|
|
@ -26,19 +28,12 @@ class MinioConfig {
|
|||
|
||||
factory MinioConfig.fromEnvironment() {
|
||||
return MinioConfig(
|
||||
endpoint: const String.fromEnvironment(
|
||||
'MINIO_SERVER_URL',
|
||||
defaultValue:
|
||||
'minio-rsso80cks4ck4oc44s0og80c.147.45.152.129.sslip.io',
|
||||
),
|
||||
port: const int.fromEnvironment('MINIO_PORT', defaultValue: 443),
|
||||
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',
|
||||
),
|
||||
endpoint: Platform.environment['MINIO_SERVER_URL']!,
|
||||
port: int.parse(Platform.environment['MINIO_PORT'] ?? '443'),
|
||||
accessKey: Platform.environment['SERVICE_USER_MINIO']!,
|
||||
secretKey: Platform.environment['SERVICE_PASSWORD_MINIO']!,
|
||||
useSSL: Platform.environment['MINIO_USE_SSL'] == 'true',
|
||||
region: Platform.environment['MINIO_REGION'] ?? 'us-east-1',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue