Skip to content

Commit

Permalink
Mention the special http value for PG_PROXY_PORT in README
Browse files Browse the repository at this point in the history
  • Loading branch information
alco committed Dec 11, 2023
1 parent 3e7ebf5 commit 6ac89da
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions components/electric/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The Electric application is configured using environment variables. Everything t
| `LOGICAL_PUBLISHER_PORT` | `5433` | Port number to use for reverse connections from Postgres. |
| `HTTP_PORT` | `5133` | Port for HTTP connections. Includes client websocket connections on `/ws`, and other functions on `/api`. |
| | | |
| `PG_PROXY_PORT` | `65432` | Port number for connections to the [Postgres migration proxy](https://electric-sql.com/docs/usage/data-modelling/migrations). |
| `PG_PROXY_PORT` | `65432` | <p>Port number for connections to the [Postgres migrations proxy][1].</p><p>Setting this variable to the special value `http` enables the migrations proxy to accept connections from the proxy tunnel (`npx electric-sql proxy-tunnel`) when Electric is running behind a restrictive firewall that only allows HTTP/HTTPS connections. |
| `PG_PROXY_PASSWORD` | | Password to use when connecting to the Postgres proxy via `psql` or any other Postgres client. |
| | | |
| `AUTH_MODE` | `"secure"` | Authentication mode to use to authenticate Satellite clients. See below. |
Expand All @@ -102,6 +102,8 @@ The Electric application is configured using environment variables. Everything t
| | | |
| `ELECTRIC_INSTANCE_ID` | `electric` | Unique identifier of this Electric instance when running in a cluster (not yet supported). When running locally, you can use any string |

[1]: https://electric-sql.com/docs/usage/data-modelling/migrations

**Authentication**

By default, Electric uses JWT-based authentication. At a minimum, the signature algorithm and an appropriate key must be
Expand Down Expand Up @@ -153,14 +155,16 @@ Note that this procedure **MUST** be called within the same transaction as the m
Note that if, when running on OSX, you get errors like:

```

could not connect to the publisher: connection to server at \"host.docker.internal\" (192.168.65.2), port 5433 failed
```

````
You may need to adjust your docker networking or run Electric within docker. To run within Docker, you can build the docker image locally:
```sh
make docker-build
```
````

And then run with the right env vars, e.g.:

Expand Down

0 comments on commit 6ac89da

Please sign in to comment.