Allow storing files in S3, instead of just on-disk
These changes are backwards-compatible, so it will first check S3 and fall back to on-disk if it cannot find the file.
There are two new config options:
s3_bucket_name: if this is set, we save new files here instead of on-disk. We assume you have the region and AWS credentials configured in your environment
doc_root: this defaults to "/file", but if you can also set this to something like "http://.s3-website-us-west-2.amazonaws.com/" to use a S3 bucket configured for static website hosting
To migrate files from on-disk to S3, you'd take the numbered directories in "storage/docs/" and put them at the top level of the S3 bucket.
Allow storing files in S3, instead of just on-disk
These changes are backwards-compatible, so it will first check S3 and fall back to on-disk if it cannot find the file.
There are two new config options:
s3_bucket_name
: if this is set, we save new files here instead of on-disk. We assume you have the region and AWS credentials configured in your environmentdoc_root
: this defaults to "/file", but if you can also set this to something like "http://To migrate files from on-disk to S3, you'd take the numbered directories in "storage/docs/" and put them at the top level of the S3 bucket.
Also update dependencies to more modern versions.