Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

HTTPS not working #28

Closed
kmoe opened this issue Jun 14, 2018 · 4 comments
Closed

HTTPS not working #28

kmoe opened this issue Jun 14, 2018 · 4 comments

Comments

@kmoe
Copy link

kmoe commented Jun 14, 2018

Currently, https://phoenixframework.org/ times out, while http://phoenixframework.org/ loads correctly.

@chrismccord
Copy link
Member

We haven't set up ssl on the landing page and it's not something I'm currently prioritizing over other efforts. The site is hosted form an S3 bucket if someone would like to figure out the legwork for me on getting SSL in place with letsencrypt. Thanks!

@kmoe
Copy link
Author

kmoe commented Jun 14, 2018

I discovered this issue when following a link to https://phoenixframework.org/docs/advanced-deployment from https://hexdocs.pm/distillery/use-with-phoenix.html. I think it may be easier to set up SSL than update all the links to phoenixframework.org across the internet!

If you want to set up SSL while keeping the site on S3 you have a couple of options. It's not possible to set up a certificate for a custom domain pointing directly to an S3 bucket, so you will need to point your domain DNS to CloudFront or another proxy.

Option 1: Let's Encrypt

Generate Let's Encrypt certificate locally, upload to AWS Certificate Manager, point to CloudFront distribution.

http://blog.bogdancarpean.com/add-https-to-amazon-s3-hosted-website/

Option 2: ACM

Request certificate on AWS Certificate Manager, point to CloudFront distribution.

https://ronniemlr.com/2018/01/22/https-for-your-static-s3-website/

The second option is easier, but ties you into AWS more (though the cost of switching is still small).

Hope this helps, and thanks for your work on Phoenix.

@timwis
Copy link

timwis commented Jul 8, 2018

Chrome will start marking non-https sites as "not secure" this month, so it may be worth revisiting. If you're already using S3, option 2 above should be pretty straightforward. Other options are:

  1. Use github pages instead of S3, and get SSL for free. You could setup travis CI to build the site and push it to the gh-pages branch when you push to master.
  2. Use CloudFlare for the site's DNS, which also gives you SSL for free.

@chrismccord
Copy link
Member

https://phoenixframework.org

Cheers :)

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

No branches or pull requests

3 participants