From 1dc1dbc5b6f76308c794acb744bc91afe9828a0b Mon Sep 17 00:00:00 2001 From: Brian C Date: Sun, 10 Jul 2016 16:29:42 -0500 Subject: [PATCH] Update README.md Move SSL connection information to wiki --- README.md | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/README.md b/README.md index f4689134..df1f1e19 100644 --- a/README.md +++ b/README.md @@ -109,26 +109,6 @@ It's __highly recommended__ you read the documentation for [pg-pool](https://git [Here is an up & running quickly example](https://github.com/brianc/node-postgres/wiki/Example) -### connect to self signed Postgresql server - -Use following config to connect a Postgresql Server self signed: - -``` -var config = { - database : 'database-name', //env var: PGDATABASE - host : "host-or-ip", //env var: PGPORT - port : 5432, //env var: PGPORT - max : 100, // max number of clients in the pool - idleTimeoutMillis: 30000, - ssl : { - rejectUnauthorized : false, - ca : fs.readFileSync("/path/to/server-certificates/maybe/root.crt").toString(), - key : fs.readFileSync("/path/to/client-key/maybe/postgresql.key").toString(), - cert : fs.readFileSync("/path/to/client-certificates/maybe/postgresql.crt").toString(), - } -}; - -``` For more information about `config.ssl` check [TLS (SSL) of nodejs](https://nodejs.org/dist/latest-v4.x/docs/api/tls.html)