vendure-ecommerce / storefront-remix-starter

A storefront starter kit for Vendure built with Remix
https://remix-storefront.vendure.io
176 stars 93 forks source link

Https certificate on server #48

Closed miteshjethmalani closed 9 months ago

miteshjethmalani commented 10 months ago

How is the application working with https? Is through express or nginx ?

michaelbromley commented 10 months ago

The storefront app is deployed to Cloudflare, which takes care of the SSL cert for you.

miteshjethmalani commented 10 months ago

@michaelbromley as I have my custom hosting I want to host the application with https

kyunal commented 10 months ago

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.