Skip to content

Commit

Permalink
chore: allow to use S3 locally
Browse files Browse the repository at this point in the history
  • Loading branch information
LeBenLeBen committed Nov 4, 2023
1 parent 2bd5ea7 commit 5160010
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ PASSWORD_RESET_URL_ALLOW_LIST: http://localhost:3000/reset-password
ALGOLIA_APPLICATION_ID:
ALGOLIA_ADMIN_API_KEY:
ALGOLIA_RECIPES_INDEX_NAME: development_recipes

# Storage config
STORAGE_LOCATIONS: s3
STORAGE_S3_BUCKET: cookr-dev
STORAGE_S3_DRIVER: s3
STORAGE_S3_REGION: eu-west-1
STORAGE_S3_KEY:
STORAGE_S3_SECRET:
7 changes: 7 additions & 0 deletions packages/backend/directus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,11 @@ module.exports = {
ALGOLIA_APPLICATION_ID: process.env.ALGOLIA_APPLICATION_ID,
ALGOLIA_ADMIN_API_KEY: process.env.ALGOLIA_ADMIN_API_KEY,
ALGOLIA_RECIPES_INDEX_NAME: process.env.ALGOLIA_RECIPES_INDEX_NAME,

STORAGE_LOCATIONS: process.env.STORAGE_LOCATIONS,
STORAGE_S3_BUCKET: process.env.STORAGE_S3_BUCKET,
STORAGE_S3_DRIVER: process.env.STORAGE_S3_DRIVER,
STORAGE_S3_REGION: process.env.STORAGE_S3_REGION,
STORAGE_S3_KEY: process.env.STORAGE_S3_KEY,
STORAGE_S3_SECRET: process.env.STORAGE_S3_SECRET,
};

0 comments on commit 5160010

Please sign in to comment.