Skip to content

Commit 1dc1dbc

Browse files
authored
Update README.md
Move SSL connection information to wiki
1 parent bd7fc59 commit 1dc1dbc

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

README.md

-20
Original file line numberDiff line numberDiff line change
@@ -109,26 +109,6 @@ It's __highly recommended__ you read the documentation for [pg-pool](https://git
109109

110110
[Here is an up & running quickly example](https://github.com/brianc/node-postgres/wiki/Example)
111111

112-
### connect to self signed Postgresql server
113-
114-
Use following config to connect a Postgresql Server self signed:
115-
116-
```
117-
var config = {
118-
database : 'database-name', //env var: PGDATABASE
119-
host : "host-or-ip", //env var: PGPORT
120-
port : 5432, //env var: PGPORT
121-
max : 100, // max number of clients in the pool
122-
idleTimeoutMillis: 30000,
123-
ssl : {
124-
rejectUnauthorized : false,
125-
ca : fs.readFileSync("/path/to/server-certificates/maybe/root.crt").toString(),
126-
key : fs.readFileSync("/path/to/client-key/maybe/postgresql.key").toString(),
127-
cert : fs.readFileSync("/path/to/client-certificates/maybe/postgresql.crt").toString(),
128-
}
129-
};
130-
131-
```
132112

133113
For more information about `config.ssl` check [TLS (SSL) of nodejs](https://nodejs.org/dist/latest-v4.x/docs/api/tls.html)
134114

0 commit comments

Comments
 (0)