S3 Images

I’m working on a feature for the site that allows you to use an S3 bucket to host images. Presently, I’m expecting to use Digital Ocean’s S3 hosting to hold the images for this site, primarily because the setup is simpler.

The challenge is that this site is static in a git repo, but I don’t want to put the images into the repository. I want to reference the images in S3, and have it serve them via a URL that points directly to the bucket (or really the CDN proxy that sits in front of it). What I’d prefer is to specify where the image will be in the post content via URL, and then if the image doesn’t exist, I would be able to drag and drop an image onto the placeholder on the page. The server that serves this site would automatically upload the image to the specified destination and when you reload, the image appears.