Merge pull request #1362 from Deyvi-dev/develop

feat(s3): add S3_SKIP_POLICY env variable to disable setBucketPolicy
This commit is contained in:
Davidson Gomes
2025-04-08 10:51:52 -03:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -63,9 +63,9 @@ const createBucket = async () => {
if (!exists) {
await minioClient.makeBucket(bucketName);
}
await setBucketPolicy();
if (!BUCKET.SKIP_POLICY) {
await setBucketPolicy();
}
logger.info(`S3 Bucket ${bucketName} - ON`);
return true;
} catch (error) {