File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
api/integrations/storage/s3/libs Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,9 @@ const createBucket = async () => {
6363 if ( ! exists ) {
6464 await minioClient . makeBucket ( bucketName ) ;
6565 }
66-
67- await setBucketPolicy ( ) ;
68-
66+ if ( ! BUCKET . SKIP_POLICY ) {
67+ await setBucketPolicy ( ) ;
68+ }
6969 logger . info ( `S3 Bucket ${ bucketName } - ON` ) ;
7070 return true ;
7171 } catch ( error ) {
Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ export type S3 = {
263263 PORT ?: number ;
264264 USE_SSL ?: boolean ;
265265 REGION ?: string ;
266+ SKIP_POLICY ?: boolean ;
266267} ;
267268
268269export type CacheConf = { REDIS : CacheConfRedis ; LOCAL : CacheConfLocal } ;
@@ -608,6 +609,7 @@ export class ConfigService {
608609 PORT : Number . parseInt ( process . env ?. S3_PORT || '9000' ) ,
609610 USE_SSL : process . env ?. S3_USE_SSL === 'true' ,
610611 REGION : process . env ?. S3_REGION ,
612+ SKIP_POLICY : process . env ?. S3_SKIP_POLICY === 'true' ,
611613 } ,
612614 AUTHENTICATION : {
613615 API_KEY : {
You can’t perform that action at this time.
0 commit comments