cloudflare / Stout

A reliable static website deploy tool
MIT License
752 stars 29 forks source link

Does this support s3 rest endpoints? #36

Open bananatranada opened 7 years ago

bananatranada commented 7 years ago

Instead of creating a static website using the website option where you explicitly enable "static website" on s3, is it possible to use the rest endpoint instead? In addition, cloudfront would be used to choose its index.html as the root object. Or does this do that already by default?

renandincer commented 7 years ago

Thanks for the issue @bkgunby.

Can you clarify what you mean by using the rest endpoint instead of enabling the static website option?

Yes, we set index.html as the root object when you run stout create. You can change this option later on AWS if you need to use some other object.

hughmp commented 7 years ago

Hey, I'd love to use your tool to deploy static sites to s3-compatible object storage e.g. Ceph RADOS Gateway RGW (http://docs.ceph.com/docs/master/radosgw/).

I currently use several other s3 tools with RGW successfully by simply specifying a custom endpoint url. Obviously the CloudFront features wouldn't be supported, but I'm assuming Stout automatically assigns the Content-Type & Content-Disposition so I don't have to do this programmatically?

Nice work though :) Cheers!