Closed miteshjethmalani closed 9 months ago
The storefront app is deployed to Cloudflare, which takes care of the SSL cert for you.
@michaelbromley as I have my custom hosting I want to host the application with https
You can serve the application locally by building and then starting it (yarn build
, yarn start
). This will expose the application locally through an HTTP server. You can then use a reverse proxy like NGINX or Caddy which and manage HTTPS through them. This is generally preferred to having the application itself deal with HTTPS. This isn't really in the scope of this starter, but there are many great tutorials that can help you set this up. See for instance setting up NGINX with LetsEncrypt for SSL and then configuring it as a reverse proxy. Note that these are just some example guides I found.
How is the application working with https? Is through express or nginx ?