Commit e19f7050 by Harish Patel

added aws access credentials

1 parent 35c67265
module.exports = [ module.exports = [
'strapi::errors', 'strapi::errors',
'strapi::security', // 'strapi::security',
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
"connect-src": ["'self'", "https:"],
"img-src": ["'self'", "data:", "blob:", "dl.airtable.com", "hiranandanioffers.ap-south-1.amazonaws.com"],
"media-src": ["'self'", "data:", "blob:", "dl.airtable.com", "hiranandanioffers.ap-south-1.amazonaws.com"],
upgradeInsecureRequests: null
}
}
}
},
'strapi::cors', 'strapi::cors',
'strapi::poweredBy', 'strapi::poweredBy',
'strapi::logger', 'strapi::logger',
......
...@@ -23,23 +23,23 @@ module.exports = ({ env }) => ({ ...@@ -23,23 +23,23 @@ module.exports = ({ env }) => ({
// ... // ...
// Reference: https://www.npmjs.com/package/@strapi/provider-upload-aws-s3 // Reference: https://www.npmjs.com/package/@strapi/provider-upload-aws-s3
// upload: { upload: {
// config: { config: {
// provider: "aws-s3", provider: "aws-s3",
// providerOptions: { providerOptions: {
// accessKeyId: env("AWS_ACCESS_KEY_ID"), accessKeyId: env("AWS_ACCESS_KEY_ID"),
// secretAccessKey: env("AWS_ACCESS_SECRET"), secretAccessKey: env("AWS_ACCESS_SECRET"),
// region: env("AWS_REGION"), region: env("AWS_REGION"),
// params: { params: {
// Bucket: env("AWS_BUCKET"), Bucket: env("AWS_BUCKET"),
// }, },
// }, },
// actionOptions: { actionOptions: {
// upload: {}, upload: {},
// uploadStream: {}, uploadStream: {},
// delete: {}, delete: {},
// }, },
// }, },
// }, },
// ... // ...
}); });
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!