Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making website static hosting optional #130

Open
sandstrom opened this issue Jul 28, 2016 · 2 comments
Open

Making website static hosting optional #130

sandstrom opened this issue Jul 28, 2016 · 2 comments

Comments

@sandstrom
Copy link

Thanks for an awesome extension! 🎈 🌳

When using CloudFront to serve the site (from S3) it's useful not having static website hosting on the bucket enabled.

Is there a way to configure this with S3-sync? (setting the acl to 'private' helps but it's still published, I'd rather not have it published at all)

Also, out of curiosity, have you considered using the AWS Ruby gem instead of fog?

@fredjean
Copy link
Owner

S3 Sync doesn't require the bucket to be a website. This is something that is configured outside of it.

As for fog vs AWS Ruby... I am cranky enough at fog, but I don't have the time or energy to rewrite the gem. I will however accept a PR that would do it.

@tgautier
Copy link

You have to remove the following lines if you don't want static website hosting to be enabled.

s3_sync.index_document             = 'index.html'
s3_sync.error_document             = '404.html'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants