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

@ -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"),
}),
}),
],