Hello
I am trying to get Strapi to work with Digital Ocean Spaces.
I tried every solution I found in this thread and others. I am using Strapi version 4.5.6
This is my setup
middleware.ts
module.exports = [
‘strapi::errors’,
{
name: ‘strapi::security’,
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
‘connect-src’: ["‘self’", ‘https:’],
‘img-src’: [
“‘self’”,
‘data:’,
‘blob:’,
‘dl.airtable.com’,
‘.digitaloceanspaces.com’,
],
‘media-src’: [
“‘self’”,
‘data:’,
‘blob:’,
‘dl.airtable.com’,
'.digitaloceanspaces.com’,
],
upgradeInsecureRequests: null,
},
},
},
},
‘strapi::cors’,
‘strapi::poweredBy’,
‘strapi::logger’,
‘strapi::query’,
‘strapi::body’,
‘strapi::session’,
‘strapi::favicon’,
‘strapi::public’,
];
plugins.ts
module.exports = ({ env }) => ({
upload: {
config: {
provider: “strapi-provider-upload-do”,
providerOptions: {
key: env(‘DO_SPACE_ACCESS_KEY’),
secret: env(‘DO_SPACE_SECRET_KEY’),
endpoint: env(‘DO_SPACE_ENDPOINT’),
space: env(‘DO_SPACE_BUCKET’),
folders: [{folderName: ‘courses’, acl: ‘private’}, {folderName: ‘members’, acl: ‘private’}],
acl: ‘public-read’, // default ACL
},
actionOptions: {
upload: {},
uploadStream: {},
delete: {},
},
},
},
});
and this is the error message I got
Error: getaddrinfo ENOTFOUND strapi-fe-bucket
Thanks in advance!
Any help will be highly appreciated