-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* deploy * feat: add s3 plugin config * feat: add s3 secret reference in kontinuous * fix: strapi env * fix: add s3 plugin * Revert "fix: add s3 plugin" This reverts commit 789fd45. * fix: install s3 plugin in strapi dir * fix: s3 config * fix: cleaning * remove initContainer * fix: CSP * runtime env * default * new seed * wip * wip * wip * deactivate * fix: deactivate * fix: move deactivate * fix: kontinuous config * fix: api secrets * fix: secret refs --------- Co-authored-by: Gary van Woerkens <[email protected]>
- Loading branch information
1 parent
56424bd
commit a21d8e5
Showing
9 changed files
with
2,028 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
api: | ||
vars: | ||
ENV: preprod | ||
addVolumes: | ||
- uploads | ||
volumeMounts: | ||
- mountPath: /app/public/uploads | ||
name: uploads | ||
envFrom: | ||
- secretRef: | ||
name: pg-app | ||
- secretRef: | ||
name: api | ||
- secretRef: | ||
name: ozensemble-dev-app-access-key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,43 @@ | ||
module.exports = [ | ||
'strapi::logger', | ||
'strapi::errors', | ||
'strapi::security', | ||
'strapi::cors', | ||
'strapi::poweredBy', | ||
'strapi::query', | ||
'strapi::body', | ||
'strapi::session', | ||
'strapi::favicon', | ||
'strapi::public', | ||
]; | ||
module.exports = ({ env }) => [ | ||
"strapi::logger", | ||
"strapi::errors", | ||
{ | ||
name: "strapi::security", | ||
config: { | ||
contentSecurityPolicy: { | ||
useDefaults: true, | ||
directives: { | ||
"connect-src": ["'self'", "https:"], | ||
"img-src": [ | ||
"'self'", | ||
"data:", | ||
"blob:", | ||
"market-assets.strapi.io", | ||
`${env("bucket_name")}.${ | ||
new URL(env("bucket_endpoint", "https://fabrique.social.gouv.fr")) | ||
.hostname | ||
}`, | ||
], | ||
"media-src": [ | ||
"'self'", | ||
"data:", | ||
"blob:", | ||
"market-assets.strapi.io", | ||
`${env("bucket_name")}.${ | ||
new URL(env("bucket_endpoint", "https://fabrique.social.gouv.fr")) | ||
.hostname | ||
}`, | ||
], | ||
upgradeInsecureRequests: null, | ||
}, | ||
}, | ||
}, | ||
}, | ||
"strapi::cors", | ||
"strapi::poweredBy", | ||
"strapi::query", | ||
"strapi::body", | ||
"strapi::session", | ||
"strapi::favicon", | ||
"strapi::public", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,40 @@ | ||
module.exports = () => ({ | ||
'sitemap': { | ||
enabled: true, | ||
config: { | ||
cron: '0 0 0 * * *', | ||
limit: 45000, | ||
xsl: true, | ||
autoGenerate: false, | ||
caching: true, | ||
allowedFields: ['id', 'uid'], | ||
excludedTypes: [], | ||
module.exports = ({ env }) => ({ | ||
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: { | ||
rootPath: env("ENV") === "prod" ? "" : env("BRANCH_NAME"), | ||
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: {}, | ||
}, | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.