steiza / docstore

For any civics-minded organization that needs a simple place to host documents publicly
http://a2docs.org/
7 stars 4 forks source link

Allow storing files in S3, instead of just on-disk #30

Open steiza opened 3 years ago

steiza commented 3 years ago

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:

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.