Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When using AWS S3 Storage, uploads of all files in our application will go to the defined S3 Buckets. Depending on the type of file, they are served differently. Media files (public and private) are served directly by S3. either served directly by amazon s3 (by injecting the links directly into the webpage) or via the application server.

...

Code Block
languageyaml
fileStorageConfig:
  host:
    # enable storing uploads on the hosts file system. 
    # Set to `false` if you use s3 config below
    enabled: false
    
    # Specify the absolute path to a directory on the filesystem where uploads should be stored
    # Irrelevant if you use s3 config below 
    path: $UPLOADS_DIR
 
   s3:
    enabled: true
    region:
    publicBucket:
    privateBucket:
    uploadsBucket:
    accessKey:
    secretKey:


initConfig
  copyStaticFilesToS3:
    enabled: true

...

Furthermore, you will need to give an IAM user ( or an IAM Role ) full access to all buckets and permission to list all available buckets. To do so, attach the following IAM policy to the entity that's accessing the buckets:

...