Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
strapi-setup-file
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 43202e2b
authored
2022-09-21 20:53:02 +0530
by
Harish Patel
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Changes
1 parent
5804a0ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
18 deletions
.env.example
config/plugins.js
.env.example
View file @
43202e2
...
@@ -4,3 +4,20 @@ APP_KEYS="toBeModified1,toBeModified2"
...
@@ -4,3 +4,20 @@ APP_KEYS="toBeModified1,toBeModified2"
API_TOKEN_SALT=tobemodified
API_TOKEN_SALT=tobemodified
ADMIN_JWT_SECRET=tobemodified
ADMIN_JWT_SECRET=tobemodified
JWT_SECRET=tobemodified
JWT_SECRET=tobemodified
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=offers
DATABASE_USERNAME=harishpatel
DATABASE_PASSWORD=harishpatel
DATABASE_SCHEMA=public
SMTP_HOST=smtp.mailtrap.io
SMTP_PORT=2525
SMTP_USERNAME=2b3a6bda8b6889
SMTP_PASSWORD=521c5fbdaa4326
AWS_ACCESS_KEY_ID=
AWS_ACCESS_SECRET=
AWS_REGION=
AWS_BUCKET=
config/plugins.js
View file @
43202e2
...
@@ -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
:
{},
// }
},
// }
},
// }
},
// ...
// ...
});
});
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment