H
Hono•3mo ago
Krishna Santosh

How do I serve hono on https

Hello I'm using Hono with Bun, and I would like to serve the the application on https://localhost:3000, I couldn't find any documentation on this. Any help would be greatly appreciated 🙂 Thank You.
5 Replies
Hurby
Hurby•3mo ago
is there any particular reason for that?
http://localhost
http://localhost
already behaves like HTTPS for development purposes anyway
Krishna Santosh
Krishna SantoshOP•3mo ago
I'm using cloudflare tunnel to expose the app to public internet, and would like to specify the url with https in the cloudflare tunnel dashboard
Hurby
Hurby•3mo ago
You don't have to do that locally; just setup the Cloudflare tunnel and run it, then add your CNAME record to your domain to point the tunnel.
Krishna Santosh
Krishna SantoshOP•3mo ago
It is working with http, but I was wondering if it is possible to run the local dev server with https and possibly custom certificates
Want results from more Discord servers?
Add your server