gatsbyjs / gatsby-docker

Docker image that builds and hosts a Gatsby site
MIT License
356 stars 88 forks source link

HTTPS? #44

Closed KevinBurton closed 3 years ago

KevinBurton commented 3 years ago

Looking at the README I see that I can run the app on an HTTP port. How is it suggested that I use HTTPS instead?

yairau commented 3 years ago

I think you can use ngrok for that. I didn't try it yet so don't know for sure but it should work.

gardner commented 3 years ago

@KevinBurton you will generally want to use something like caddy or traefik to do HTTPS termination for you and then route to the gatsby container from there. HTTPS is out of scope for a container like this.

jamo commented 3 years ago

@KevinBurton what's the use case for having the gatsby-docker setup support HTTPS?

Indeed, ideally, you will have nginx/(apache) or some similar thing that terminates the HTTPS traffic on the edge, or in case of a single VPS you'd have it installed on the VPS, and then that would route requests to your gatsby-container over HTTP.

gardner commented 3 years ago

As a non-contributor community member: please close this ticket. Cheers!