Skip to content

Commit

Permalink
Merge pull request #4 from incubateur-ademe/feat/sentry
Browse files Browse the repository at this point in the history
feat: add sentry middleware
  • Loading branch information
mehdilouraoui authored May 6, 2024
2 parents f1a792c + 6ba59d9 commit 85a180f
Show file tree
Hide file tree
Showing 8 changed files with 13,155 additions and 102 deletions.
43 changes: 22 additions & 21 deletions config/middlewares.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,38 @@
export default [
'strapi::logger',
'strapi::errors',
"strapi::logger",
"strapi::errors",
{
name: 'strapi::security',
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'connect-src': ["'self'", 'https:'],
'img-src': [
"connect-src": ["'self'", "https:"],
"img-src": [
"'self'",
'data:',
'blob:',
'market-assets.strapi.io',
'plusfraichemaville.s3.fr-par.scw.cloud',
"data:",
"blob:",
"market-assets.strapi.io",
"plusfraichemaville.s3.fr-par.scw.cloud",
],
'media-src': [
"media-src": [
"'self'",
'data:',
'blob:',
'market-assets.strapi.io',
'plusfraichemaville.s3.fr-par.scw.cloud',
"data:",
"blob:",
"market-assets.strapi.io",
"plusfraichemaville.s3.fr-par.scw.cloud",
],
upgradeInsecureRequests: null,
},
},
},
},
'strapi::cors',
'strapi::poweredBy',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
"strapi::cors",
"strapi::poweredBy",
"strapi::query",
"strapi::body",
"strapi::session",
"strapi::favicon",
"strapi::public",
"global::sentry",
];
24 changes: 12 additions & 12 deletions config/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
module.exports = ({env}) => ({
module.exports = ({ env }) => ({
upload: {
config: {
provider: 'aws-s3',
provider: "aws-s3",
providerOptions: {
s3Options: {
accessKeyId: env('SCALEWAY_ACCESS_KEY_ID'),
secretAccessKey: env('SCALEWAY_ACCESS_SECRET'),
endpoint: env('SCALEWAY_ENDPOINT'),
region: env('SCALEWAY_REGION'),
accessKeyId: env("SCALEWAY_ACCESS_KEY_ID"),
secretAccessKey: env("SCALEWAY_ACCESS_SECRET"),
endpoint: env("SCALEWAY_ENDPOINT"),
region: env("SCALEWAY_REGION"),
params: {
Bucket: env('SCALEWAY_BUCKET'),
Bucket: env("SCALEWAY_BUCKET"),
},
},
},
Expand All @@ -25,16 +25,16 @@ module.exports = ({env}) => ({
},
},
},
'drag-drop-content-types': {
enabled: true
"drag-drop-content-types": {
enabled: true,
},
ckeditor: {
enabled: true,
resolve: "./src/plugins/strapi-plugin-ckeditor"
resolve: "./src/plugins/strapi-plugin-ckeditor",
},
graphql: {
config: {
defaultLimit: 100,
}
}
},
},
});
Loading

0 comments on commit 85a180f

Please sign in to comment.