mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
Add ssh gateway usage to readme
This commit is contained in:
parent
403701b258
commit
702be10567
15
README.md
15
README.md
@ -71,6 +71,21 @@ pgweb --url postgres://user:password@host:port/database?sslmode=[mode]
|
||||
It works great with [Heroku Postgres](https://postgres.heroku.com) if you need
|
||||
to troubleshoot production database or simply run a few queries.
|
||||
|
||||
### SSH Gateway
|
||||
|
||||
If your postgres server is running behind firewall, you can connect to it using
|
||||
ssh gateways. First, you'll need to run a ssh command:
|
||||
|
||||
```
|
||||
ssh -Ng -L 5433:localhost:5432 user@remotehost.com
|
||||
```
|
||||
|
||||
Then you can start pgweb with the following command:
|
||||
|
||||
```
|
||||
pgweb --url postgres://user:password@localhost:5433/database
|
||||
```
|
||||
|
||||
### CLI options
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user