Skip to content

Commit

Permalink
chore: document externalStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
sylv committed May 16, 2024
1 parent 7769b86 commit 4d9a513
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
19 changes: 18 additions & 1 deletion example/.microrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,21 @@ conversions:
# image/gif to video/webm is an exception.
- from: image/gif # This could also be a list of types, just a category like "image", or both.
to: video/webm
minSize: 1MB # Required size before conversion, files uploaded under this limit are ignored
minSize: 1MB # Required size before conversion, files uploaded under this limit are ignored

# # externalStorage lets you offload files to S3 to free up space locally.
# # you should prefer local storage over external storage, as external storage is usually very slow.
# # the benefit is that external storage is unlimited, local disk space is not.
# externalStorage:
# type: s3
# bucket: my-bucket
# region: us-west-1
# endpoint: s3.us-west-1.amazonaws.com # optional
# forcePathStyle: false # optional
# credentials:
# accessKeyId: my-access-key
# secretAccessKey: my-secret-key
# filter:
# decayDuration: 7d # how long before files are moved to external storage
# minSize: 1MB # files under this size will not be moved
# maxSize: 1GB # files over this size will be moved
1 change: 0 additions & 1 deletion packages/api/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const schema = strictObject({
storagePath: string(),
externalStorage: strictObject({
type: literal("s3"),

bucket: string(),
region: string(),
endpoint: string().url().optional(),
Expand Down

0 comments on commit 4d9a513

Please sign in to comment.