HamedMP / CursorLens

An open-source dashboard for Cursor.sh IDE. Log AI code generations, track usage, and control AI models (including local ones). Run locally or use upcoming hosted version.
https://www.cursorlens.com
GNU Affero General Public License v3.0
138 stars 22 forks source link

Explore `ngrok` alternatives #11

Open HamedMP opened 2 months ago

HamedMP commented 2 months ago

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

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

shankscoder commented 2 months ago

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?

HamedMP commented 2 months ago

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

shankscoder commented 2 months ago

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

tylersmalley commented 4 days ago

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)

HamedMP commented 2 days ago

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