Skip to main content

Configuration

S3 Streamer is designed to easily integrate with your existing S3-compatible storage solutions. To get started, you need to configure the application with your AWS credentials and bucket information. This guide will walk you through the configuration process.

Configuration File

The configuration file is located in the root directory of the project and is named .env. This file contains all the necessary environment variables required for the application to function correctly. You can create this file by copying the example file provided:

cp .env.example .env

Environment Variables

The following environment variables are required for the application to work:

Variable NameDescriptionRequiredDefault
AWS_ACCESS_KEY_IDYour AWS access key ID.X
AWS_SECRET_ACCESS_KEYYour AWS secret access key.X
AWS_REGIONThe AWS region where your S3 bucket is located.X
AWS_S3_BUCKET_NAMEThe name of your S3 bucket.X
AWS_S3_ENDPOINT_URLThe endpoint URL for your S3-compatible storage solution.
PORTThe port on which the server will run (default is 3000).3000
NODE_ENVThe environment in which the application is running (development/production).development
AWS_S3_ENDPOINT_URL

The AWS_S3_ENDPOINT_URL environment variable is optional and is only required if you are using a non-AWS S3-compatible storage solution.

Its default value is https://s3.amazonaws.com, which is the standard endpoint for AWS S3.