hugo-deploy icon indicating copy to clipboard operation
hugo-deploy copied to clipboard

End-to-end encryption

Open nathany opened this issue 8 years ago • 4 comments

Right now I'm using CloudFlare with Flexible SSL. I would like to do better, especially if I ever have any user forms on a site.

Flexible SSL: There is an encrypted connection between your website visitors and CloudFlare, but not from CloudFlare to your server.

S3 supports HTTPS, but only for subdomains without dots in them (eg. hugo-deploy but not nathany.com).

However, S3's static website hosting doesn't appear to support HTTPS.

https://hugo-deploy.s3.amazonaws.com/index.html works https://hugo-deploy.s3-website-us-east-1.amazonaws.com doesn't resolve

nathany avatar Jul 22 '16 02:07 nathany

As far as I can tell, it's the same situation for Google Cloud Storage. And with GCS there is the question of whether or not the site would be available everywhere, as well as not having CDN $ pricing.

Amazon CloudFront may do the trick, if cache is invalidated automatically in s3up (https://github.com/nathany/s3up/issues/6), but it lacks HTTP/2.

An alternative is to run Caddy on a server somewhere (Google Container Engine, Digital Ocean, Linode) with Let's Encrypt for the certs. With or without CloudFlare in front.

nathany avatar Jul 22 '16 03:07 nathany

https://aws.amazon.com/about-aws/whats-new/2016/09/amazon-cloudfront-now-supports-http2/

nathany avatar Sep 10 '16 21:09 nathany

CloudFront and ACM: https://github.com/dcarley/dan.carley.co/tree/master/terraform

nathany avatar Nov 17 '17 15:11 nathany

https://github.com/pkazmierczak/piotrkazmierczak.com/blob/master/.travis.yml

nathany avatar Nov 17 '17 15:11 nathany