Skip to content

Commit

Permalink
images upload
Browse files Browse the repository at this point in the history
  • Loading branch information
darshanbajgain committed Oct 18, 2023
1 parent 6e4abac commit 7875423
Show file tree
Hide file tree
Showing 12 changed files with 286 additions and 43 deletions.
Binary file added about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added home1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added home2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@strapi/provider-upload-cloudinary": "^4.14.4",
"markdown-it": "^13.0.2",
"markdown-parser-react": "^1.1.2",
"pg": "^8.11.3",
Expand Down
Binary file added posts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 0 additions & 22 deletions strapi/config/env/production/database.js

This file was deleted.

18 changes: 0 additions & 18 deletions strapi/config/env/production/server.js

This file was deleted.

15 changes: 14 additions & 1 deletion strapi/config/middlewares.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
module.exports = [
'strapi::errors',
'strapi::security',
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'connect-src': ["'self'", 'https:'],
'img-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com'],
'media-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com'],
upgradeInsecureRequests: null,
},
},
},
},
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
Expand Down
18 changes: 18 additions & 0 deletions strapi/config/plugins.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = ({ env }) => ({
// ...
upload: {
config: {
provider: 'cloudinary',
providerOptions: {
cloud_name: env('CLOUDINARY_NAME'),
api_key: env('CLOUDINARY_KEY'),
api_secret: env('CLOUDINARY_SECRET'),
},
actionOptions: {
upload: {},
delete: {},
},
},
},
// ...
});
Loading

0 comments on commit 7875423

Please sign in to comment.