Two Methods I Use to Run HTTPS on Localhost

Just in case it may be useful to others, here are two ways I run my Meteor app using HTTPS on my local dev system. IDE breakpoints work with both.

  • Pagekite. It’s a low-cost service. Set ROOT_URL to http://localhost:3000 and load your site on your local dev system at https://[YOUR-PREFIX-THAT-YOU-SET-UP-IN-PAGEKITE]
  • Caddy. It can be run on your local dev system as a reverse proxy. Set ROOT_URL to https://[YOUR-PREFIX-THAT-YOU-SET-UP-IN-CADDY].localhost and load it on your local dev system at that same URL. Installation and setup instructions are in this video.

Also ngrok - Pricing

I have a post about this at: Setup DEV network envinronment

1 Like

I’ve started using LocalCan - basically zero config and just works

Last year I have updated the ssl package where ssl runs on a separate port.

1 Like

Could you provide a sentence or two of explanation for those of us (like me) who want to learn more about how running SSL on a separate post can assist with running https on localhost?

The first apps (from my understanding) provide SSL and route to your app through specific links.
My package requires a bit more setup by creating your own self-signed certificate and you then access your app through SSL via another port, which allows you to access your app in traditional non-SSL, way on the standard port, and through SSL, as you have specified, at the same time. It is a bit cumbersome in the initial setup, but once you wave the warning about self-signed certificate it works pretty well. Though I will have to revisit the package and see if I can do any improvements.

1 Like