fix: add env var STORAGE_USE_SSL to toggle on/off SSL mode in MinIO Client, closes #1561

This commit is contained in:
Amruth Pillai
2023-11-23 10:13:08 +01:00
parent a661076686
commit f6ad346f9b
8 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,7 @@ STORAGE_REGION=us-east-1
STORAGE_BUCKET=default
STORAGE_ACCESS_KEY=minioadmin
STORAGE_SECRET_KEY=minioadmin
STORAGE_USE_SSL=false
# Redis (for cache & server session management)
REDIS_URL=redis://default:password@localhost:6379

View File

@ -35,6 +35,7 @@ export const configSchema = z.object({
STORAGE_BUCKET: z.string(),
STORAGE_ACCESS_KEY: z.string(),
STORAGE_SECRET_KEY: z.string(),
STORAGE_USE_SSL: z.coerce.boolean().default(false),
// Redis
REDIS_URL: z.string().url().startsWith("redis://").optional(),

View File

@ -17,6 +17,7 @@ import { StorageService } from "./storage.service";
region: configService.get<string>("STORAGE_REGION"),
accessKey: configService.getOrThrow<string>("STORAGE_ACCESS_KEY"),
secretKey: configService.getOrThrow<string>("STORAGE_SECRET_KEY"),
useSSL: configService.getOrThrow<boolean>("STORAGE_USE_SSL"),
}),
}),
],

View File

@ -93,6 +93,7 @@ services:
STORAGE_BUCKET: default
STORAGE_ACCESS_KEY: minioadmin
STORAGE_SECRET_KEY: minioadmin
STORAGE_USE_SSL: false
# -- Cache (Redis) --
REDIS_URL: redis://default:password@redis:6379

View File

@ -90,6 +90,7 @@ services:
STORAGE_BUCKET: default
STORAGE_ACCESS_KEY: minioadmin
STORAGE_SECRET_KEY: minioadmin
STORAGE_USE_SSL: false
# -- Cache (Redis) --
REDIS_URL: redis://default:password@redis:6379

View File

@ -114,6 +114,7 @@ services:
STORAGE_BUCKET: default
STORAGE_ACCESS_KEY: minioadmin
STORAGE_SECRET_KEY: minioadmin
STORAGE_USE_SSL: false
# -- Cache (Redis) --
REDIS_URL: redis://default:password@redis:6379

View File

@ -101,6 +101,7 @@ services:
STORAGE_BUCKET: default
STORAGE_ACCESS_KEY: minioadmin
STORAGE_SECRET_KEY: minioadmin
STORAGE_USE_SSL: false
# -- Cache (Redis) --
REDIS_URL: redis://default:password@redis:6379

View File

@ -95,6 +95,7 @@ services:
STORAGE_BUCKET: default
STORAGE_ACCESS_KEY: minioadmin
STORAGE_SECRET_KEY: minioadmin
STORAGE_USE_SSL: false
# -- Cache (Redis) --
REDIS_URL: redis://default:password@redis:6379