Configuration
Services
Token
Access token is used to authorize user to do some actions or to pair newly uploaded files to a user.
JWT
Uses JWT.
SERVICES_TOKEN_TYPE=JWT
SERVICES_TOKEN_SECRET=
Storage
AWS_S3
SERVICES_STORAGE_TYPE=AWS_S3
SERVICES_STORAGE_AWS_ACCESS_KEY_ID=
SERVICES_STORAGE_AWS_SECRET_ACCESS_KEY=
SERVICES_STORAGE_AWS_S3_REGION=
SERVICES_STORAGE_AWS_S3_BUCKET=
DO_SPACES
SERVICES_STORAGE_TYPE=DO_SPACES
SERVICES_STORAGE_DO_ACCESS_KEY_ID=
SERVICES_STORAGE_DO_SECRET_ACCESS_KEY=
SERVICES_STORAGE_DO_SPACES_ENDPOINT=
SERVICES_STORAGE_DO_SPACES_BUCKET=
SERVICES_STORAGE_DO_SPACES_REGION=
DISK
SERVICES_STORAGE_TYPE=DISK
SERVICES_STORAGE_DISK_DIRECTORY=
BLACKHOLE
SERVICES_STORAGE_TYPE=BLACKHOLE
Queue
AWS_SQS
SERVICES_QUEUE_TYPE=AWS_SQS
SERVICES_QUEUE_AWS_ACCESS_KEY_ID=
SERVICES_QUEUE_AWS_SECRET_ACCESS_KEY=
SERVICES_QUEUE_AWS_REGION=
SERVICES_QUEUE_AWS_SQS_URL=
CDN
AWS_CF
SERVICES_CDN_TYPE=AWS_CF
SERVICES_CDN_AWS_CF_URL=
DO_CDN
SERVICES_CDN_TYPE=DO_CDN
SERVICES_CDN_DO_CDN_URL=
SERVER
SERVICES_CDN_TYPE=SERVER
SERVICES_CDN_SERVER_URL=
ORIGINAL
SERVICES_CDN_TYPE=ORIGINAL
JOB
Async job for file post-processing.
Image
Resize image to one or more predefined dimensions.
[
{
"width": 800,
"height": 800
},
{
"width": 320,
"height": 320
}
]
SHARP
Uses Sharp.
SERVICES_JOB_IMAGE_TYPE=SHARP
SERVICES_JOB_IMAGE_THUMBNAILS=[{"width":800,"height":800},{"width":320,"height":320}]
NONE
Disable image processing.
SERVICES_JOB_IMAGE_TYPE=NONE
Video
Resize video to one or more predefined dimensions and generate previews in one or more predefined dimensions.
AWS_MC
SERVICES_JOB_VIDEO_TYPE=AWS_MC
SERVICES_JOB_VIDEO_AWS_ACCESS_KEY_ID=
SERVICES_JOB_VIDEO_AWS_SECRET_ACCESS_KEY=
SERVICES_JOB_VIDEO_AWS_REGION=
SERVICES_JOB_VIDEO_AWS_QUEUE=
SERVICES_JOB_VIDEO_AWS_ROLE=
SERVICES_JOB_VIDEO_AWS_ENDPOINT=
SERVICES_JOB_VIDEO_AWS_BUCKET=
SERVICES_JOB_VIDEO_THUMBNAILS=[{"width":800,"height":800},{"width":320,"height":320}]
SERVICES_JOB_VIDEO_CONVERSIONS=[{"width":800,"height":800},{"width":320,"height":320}]
FFMPEG
SERVICES_JOB_VIDEO_TYPE=FFMPEG
SERVICES_JOB_VIDEO_THUMBNAILS=[{"width":800,"height":800},{"width":320,"height":320}]
SERVICES_JOB_VIDEO_CONVERSIONS=[{"width":800,"height":800},{"width":320,"height":320}]
NONE
Disable video processing.
SERVICES_JOB_VIDEO_TYPE=NONE