Live data from Hacker News

Pgrok – Poor Man’s Ngrok

github.com

11–20 of 83 posts

Re: Pgrok – Poor Man’s Ngrok

#11
Has anyone tried this for a free ngrok alternative that works with HTTPS, doesn't require setting up a server and has no rate limit within reason? https://developers.cloudflare.com/pages/how-to/preview-with-...

Based on the page it looks like you can install Cloudflare's CLI and then run `cloudflared tunnel --url http://localhost:3000`, and you'll get back a URL to visit such as https://seasonal-deck-organisms-sf.trycloudflare.com. Looks like it supports being able to associate it with a custom domain too so you can have repeatable URLs.

Re: Pgrok – Poor Man’s Ngrok

#12
post #11

Has anyone tried this for a free ngrok alternative that works with HTTPS, doesn't require setting up a server and has no rate limit within reason? https://developers.cloudflare.com/pages/how-to/preview-with-... Based on the page it looks like you can install Cloudflare's CLI and then run `cloudflared tunnel --url http://localhost:3000 `, and you'll get back a URL to visit such as https://seasonal-deck-organisms-sf.tr…

Yep! We use this to test our webhook integrations locally. Works great.

Re: Pgrok – Poor Man’s Ngrok

#13
post #4

I was under the impression that pgrok was unmaintained until now, to the extend that I was looking for alternatives. Did I miss something?

I'm on mobile so it's hard browse the repo, but it looks like the initial commit was 4 days ago. So I think this would be a different project with the same name. https://github.com/pgrok/pgrok/commit/1f57713c323ea494780590...

I see.. it's bit confusing, since there's an existing project in the same space (https://github.com/jerson/pgrok). It's even linked on the project above via the awesome https://github.com/anderspitman/awesome-tunneling list, I don't know why this is necessary.

Re: Pgrok – Poor Man’s Ngrok

#14
post #11

Has anyone tried this for a free ngrok alternative that works with HTTPS, doesn't require setting up a server and has no rate limit within reason? https://developers.cloudflare.com/pages/how-to/preview-with-... Based on the page it looks like you can install Cloudflare's CLI and then run `cloudflared tunnel --url http://localhost:3000 `, and you'll get back a URL to visit such as https://seasonal-deck-organisms-sf.tr…

I guess the biggest (and only?) drawback is that it (presumably) requires a Cloudflare account to use. So if you're living in Iran, Syria, Lebanon (and some more) you're out of luck as you cannot have an account with Cloudflare then.

Otherwise it looks like a nice offering for sure.

Re: Pgrok – Poor Man’s Ngrok

#15

> This is intended for small teams that need to expose the local development environment to the public internet As someone who has to manage enterprise firewalls, this is a nightmare from a security perspective. I’m more than happy to host some project in a DMZ. I have already had some devs skirt our security policies with ngrok rather than simply talk to us about their needs. I can’t say I’m a fan of punching perman…

> > This is intended for small teams

> As someone who has to manage enterprise firewalls

Clearly not intended for you, as the quoted part tells you outright who it is intended for.

Re: Pgrok – Poor Man’s Ngrok

#16
post #10

Why do projects that are meant to be lightweight use Postgres instead of SQLite? The latter is much easier to deploy (you, well, just don't need to), and does 99% of what anyone needs, and definitely 100% of what small projects need.

Cargo culting. If you never used SQLite, anytime you need a database you use whatever you've used before without shopping around or considering if what you're about to use is right.

Re: Pgrok – Poor Man’s Ngrok

#17
post #10

Why do projects that are meant to be lightweight use Postgres instead of SQLite? The latter is much easier to deploy (you, well, just don't need to), and does 99% of what anyone needs, and definitely 100% of what small projects need.

Cargo culting. If you never used SQLite, anytime you need a database you use whatever you've used before without shopping around or considering if what you're about to use is right.

I guess... That's too bad, this project looks great but having to install/connect Postgres is putting me off installing it.

Re: Pgrok – Poor Man’s Ngrok

#18

> This is intended for small teams that need to expose the local development environment to the public internet As someone who has to manage enterprise firewalls, this is a nightmare from a security perspective. I’m more than happy to host some project in a DMZ. I have already had some devs skirt our security policies with ngrok rather than simply talk to us about their needs. I can’t say I’m a fan of punching perman…

Not exactly sure how streamlined your security process is, but for some orgs it is a red tape roller coaster to even get one TCP port open. Anyways, you could also block all traffic to ngrok servers just to ensure your Dev teams aren't skirting around your firewall.

Yeah I get it, but everyone needs to be responsible for security as well. Look what happened with Lastpass. I can totally see someone doing something silly like exposing a device with default creds like a MySQL db on a production box, then forgetting about it and getting a new job a year later.

I do block proxies like this, but it’s hard to block every little thing.

Re: Pgrok – Poor Man’s Ngrok

#19
post #10

Why do projects that are meant to be lightweight use Postgres instead of SQLite? The latter is much easier to deploy (you, well, just don't need to), and does 99% of what anyone needs, and definitely 100% of what small projects need.

Cargo culting. If you never used SQLite, anytime you need a database you use whatever you've used before without shopping around or considering if what you're about to use is right.

Hang on a second- this project looks to be assuming that the db will be remote and over the internet. Even the SQLite official document recommends people to use PostresSQL in that scenario [0]:

>Generally, if your data is separated from the application by a network, you want to use a client/server database. This is due to the fact that the database engine acts as a bandwidth-reducing filter on the database traffic ... Use a client/server database engine. PostgreSQL is an excellent choice.

[0] https://www.sqlite.org/useovernet.html

Re: Pgrok – Poor Man’s Ngrok

#20
post #17

Earlier quoted context omitted.

Cargo culting. If you never used SQLite, anytime you need a database you use whatever you've used before without shopping around or considering if what you're about to use is right.

I guess... That's too bad, this project looks great but having to install/connect Postgres is putting me off installing it.

Yeah, in better news though, it seems to be using gorm which has different drivers available (https://gorm.io/docs/connecting_to_the_database.html), SQLite being one of them. So unless they are doing something postgres specific, should be relatively easy to switch it out.
Post reply on HN