-
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.
Merge branch 'main' into feat/trackflix-user-guide
- Loading branch information
Showing
95 changed files
with
3,603 additions
and
11,527 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,40 +1,72 @@ | ||
export default async ({ env }) => { | ||
|
||
return { | ||
upload: { | ||
config: { | ||
provider: 'aws-s3', | ||
providerOptions: { | ||
s3Options: { | ||
region: env('AWS_REGION'), | ||
params: { | ||
ACL: 'private', // <== set ACL to private | ||
Bucket: env('AWS_BUCKET'), | ||
}, | ||
export default async ({env}) => ({ | ||
'cloudfront-metrics': { | ||
enabled: true, | ||
resolve: './src/plugins/cloudfront-metrics' | ||
}, | ||
'custom-selects': { | ||
enabled: true, | ||
resolve: './src/plugins/custom-selects' | ||
}, | ||
'docusaurus': { | ||
enabled: true, | ||
resolve: './src/plugins/docusaurus' | ||
}, | ||
'upload-video': { | ||
enabled: true, | ||
resolve: './src/plugins/upload-video' | ||
}, | ||
upload: { | ||
config: { | ||
sizeLimit: 2000 * 1024 * 1024, | ||
provider: 'aws-s3', | ||
providerOptions: { | ||
s3Options: { | ||
region: env('AWS_REGION'), | ||
params: { | ||
//ACL: 'private', // <== public by default, set ACL to private if needed | ||
Bucket: env('AWS_BUCKET'), | ||
}, | ||
}, | ||
actionOptions: { | ||
upload: {}, | ||
uploadStream: {}, | ||
delete: {}, | ||
}, | ||
}, | ||
actionOptions: { | ||
upload: {}, | ||
uploadStream: {}, | ||
delete: {}, | ||
}, | ||
}, | ||
'cloudfront-metrics': { | ||
enabled: true, | ||
resolve: './src/plugins/cloudfront-metrics' | ||
}, | ||
documentation: { | ||
enabled: true, | ||
config: { | ||
openapi: '3.0.0', | ||
info: { | ||
version: '1.0.0', | ||
title: 'Trackflix Api Documentation', | ||
description: '', | ||
termsOfService: 'YOUR_TERMS_OF_SERVICE_URL', | ||
contact: { | ||
name: 'Trackit team', | ||
email: '[email protected]', | ||
url: 'https://trackit.io' | ||
}, | ||
license: { | ||
name: 'Apache 2.0', | ||
url: 'https://www.apache.org/licenses/LICENSE-2.0.html' | ||
}, | ||
}, | ||
'custom-selects': { | ||
enabled: true, | ||
resolve: './src/plugins/custom-selects' | ||
'x-strapi-config': { | ||
// Leave empty to ignore plugins during generation | ||
plugins: [ 'upload', 'users-permissions'], | ||
path: '/documentation', | ||
}, | ||
'docusaurus': { | ||
enabled: true, | ||
resolve: './src/plugins/docusaurus' | ||
servers: [ | ||
{ url: 'https://trackflix-cms.trackit.io/api', description: 'Production server' }, | ||
], | ||
externalDocs: { | ||
description: 'Find out more', | ||
url: 'https://docs.strapi.io/developer-docs/latest/getting-started/introduction.html' | ||
}, | ||
'opensearch' : { | ||
enabled : true, | ||
resolve: './src/plugins/opensearch' | ||
security: [ { bearerAuth: [] } ] | ||
} | ||
} | ||
} | ||
} | ||
}) |
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
Oops, something went wrong.