CursorLens icon indicating copy to clipboard operation
CursorLens copied to clipboard

Explore `ngrok` alternatives

Open HamedMP opened this issue 1 year ago • 5 comments

Here's a good list of the alternatives. Cloudflare tunneling looks very interesting.

https://github.com/anderspitman/awesome-tunneling

HamedMP avatar Aug 20 '24 09:08 HamedMP

If you want to run this locally, do you even need ngrok? Is ngrok a baked in dependency or only to allow the remote access to the service? Can we ignore ngrok and only run on localhost?

shankscoder avatar Aug 20 '24 11:08 shankscoder

@shankscoder you ngrok because Cursor needs a https url for OAI base URL.

HamedMP avatar Aug 20 '24 12:08 HamedMP

Yup, thanks. I read the FAQ a bit more closely and noticed this😅

Ok cool, I'll try to play around with a couple of different Docker Compose stacks to address this, and share if I get anywhere. I really don't like to depend on a third-party service for what is essentially local resolution.

FWIW, on a Mac, if you use Orbstack instead of Docker Desktop , SSL is baked in by default to allow containers to be accessible over HTTPS. So you can drop the ngrok dependency here. More here: https://docs.orbstack.dev/features/https

shankscoder avatar Aug 20 '24 14:08 shankscoder

You can use Tailscale serve (tailscale serve 3000), it's free, provides an HTTPS interface that isn't available to the public internet which sounds like it achieves what is required. If you need it to be available on the public internet you can use Funnel (tailscale funnel 3000)

tylersmalley avatar Oct 31 '24 21:10 tylersmalley

That's great @tylersmalley, I used tailscale for creating private network in my dev team. I'll explore adding it to our Docker file

HamedMP avatar Nov 02 '24 13:11 HamedMP