pgrok / pgrok Goto Github PK
View Code? Open in Web Editor NEWPoor man's ngrok - a multi-tenant HTTP/TCP reverse tunnel solution through SSH remote port forwarding
License: MIT License
Poor man's ngrok - a multi-tenant HTTP/TCP reverse tunnel solution through SSH remote port forwarding
License: MIT License
Thank you for this great application.
I am just curious how I actually delete some users (assume the user is not anymore member of my oauth provider). Perhaps this can be done via psql - or is there an easier way?
Seems there is a func (c *Cluster) Remove(host string) { but I am not sure. A psql snipped would actually work for me.
docker-compose.yml
, includes pgrokd
, postgresql
and caddy
should be ngrok:
For individuals and production systems, just buy ngork, it is still my favorite.
It might be nice to have a fly deployment for the server ?
https://fly.io/docs/languages-and-frameworks/dockerfile/
https://fly.io/docs/languages-and-frameworks/golang/
Fly can only handle docker files and not docker compose. SO you can just have 2 dockers.
we need postgresql and so will use cockroach as its alot easier...
Nitpicking i know..
pgrok --config $(PWD)/pgrok.example.yml does not work
pgrok --config pgrok.example.yml does not work
2023-03-30 11:40:05 FATA Failed to load config config=/Users/apple/.pgrok/pgrok.yml error="read file: open /Users/apple/.pgrok/pgrok.yml: no such file or directory"
Would be nice if the --config arg did allow overriding
Also pgrokd -config pgrokd.exmaple.yml uses a different arg syntax. Would be nice if we used "--" for all config args ?
Also fix the spelling of "exmaple"...
can you use virtualhost for multiple domain on client side then the server will forward with the same domain name
it possible to spin up pgrok without an authentication provider?
1.3.3
When trying to connect to postgres via a unix socket, pgrok gets confused and does not connect.
panic: session: create table: failed to connect to `host=/var/run/postgresql user=pgrok database=run/postgresql:5432/pgrok`: server error (FATAL: database "run/postgresql:5432/pgrok" does not exist (SQLSTATE 3D000))
I tried to leave the port empty, but that also does not work.
Use this configuration:
{
"database": {
"database": "pgrok",
"host": "/run/postgresql",
"port": 5432,
"user": "pgrok"
}
}
I tested on NixOS, so the postgres socket path is probably different on other distros.
pgrok should connect to postgres via a unix socket just fine.
I think the port here should be optional, but I'm not sure and haven't tested that.
1.4.1
If I try to access the site via Nginx using a reverse proxy I get '400 bad request' returned to me.
This is weird because I can't track down what is causing this issue.
Install Pgrok via docker compose
Configure Pgrok as following:
https://pastebin.com/6Rqf1fSs
Nginx Config:
https://pastebin.com/ckfHC2iL
Pgrok gets proxied.
I can connect to Pgrok's front end if I navigate to it via the IP address however when I try to connect using the proxy passed nginx page I get the error.
https://tunnel.felixklg.dev/
vs http://51.89.149.136:3320/ (I took down access via IP after making this issue) (trust me bro, it worked)
1
http://pgrok.dev/ is unreachable because ERR_SSL_PROTOCOL_ERROR
No response
what all changes needs to be done to make the setup https
I am using a HTTP domain which then is unable to set the reverse proxy through caddy doing this i am facing a error.
1
I found no method to financially support this project.
I would be interested in providing some capital to the developer and/or paying a bit for customization and assistance deploying. The project I plan to use this with is not an ngrok competitor and is a bit more specialized.
Is there a way that we could chat about such things?
Look for a sponsorship link.
Find no sponsorship link.
A sponsorship link that provides a method for folks to send money to the developer using paypal or open collective or github sponsorship programs.
No response
For tcp tunnels, how to specify the port of the server?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.