From 298e2ec78daee1f2cb719b2368b4a15c8e77a614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= Date: Wed, 20 Nov 2024 15:00:18 +0100 Subject: [PATCH] wip --- api/config/plugins.js | 67 ++++++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/api/config/plugins.js b/api/config/plugins.js index 786ef6b..a617dc2 100644 --- a/api/config/plugins.js +++ b/api/config/plugins.js @@ -1,39 +1,40 @@ module.exports = ({ env }) => ({ - 'sitemap': { - enabled: true, - config: { - cron: '0 0 0 * * *', - limit: 45000, - xsl: true, - autoGenerate: false, - caching: true, - allowedFields: ['id', 'uid'], - excludedTypes: [], - }, + sitemap: { + enabled: true, + config: { + cron: "0 0 0 * * *", + limit: 45000, + xsl: true, + autoGenerate: false, + caching: true, + allowedFields: ["id", "uid"], + excludedTypes: [], }, - upload: { - config: { - provider: 'aws-s3', - providerOptions: { - s3Options: { - region: env('bucket_region'), - endpoint: env('bucket_endpoint'), - credentials: { - accessKeyId: env('bucket_access_key'), - secretAccessKey: env('bucket_secret_key'), - }, - params: { - ACL: 'public-read', - signedUrlExpires: 15 * 60, - Bucket: env('bucket_name'), - }, + }, + upload: { + config: { + provider: "aws-s3", + providerOptions: { + rootPath: "seed-s3/", + s3Options: { + region: env("bucket_region"), + endpoint: env("bucket_endpoint"), + credentials: { + accessKeyId: env("bucket_access_key"), + secretAccessKey: env("bucket_secret_key"), + }, + params: { + ACL: "public-read", + signedUrlExpires: 15 * 60, + Bucket: env("bucket_name"), }, }, - actionOptions: { - upload: {}, - uploadStream: {}, - delete: {}, - }, + }, + actionOptions: { + upload: {}, + uploadStream: {}, + delete: {}, }, }, -}); + }, +})