From e1a99be76b534bd9f7fd5b4a39961047694162d9 Mon Sep 17 00:00:00 2001 From: Corey Date: Thu, 23 Apr 2020 13:42:03 -0400 Subject: [PATCH 1/5] Add additional posgres url information --- _includes/parse-server/database.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_includes/parse-server/database.md b/_includes/parse-server/database.md index 7b1dc79d3..6230e960f 100644 --- a/_includes/parse-server/database.md +++ b/_includes/parse-server/database.md @@ -28,10 +28,11 @@ The Postgres requirements for Parse Server are: * Postgres version 9.5 * PostGIS extensions 2.3 -The postgres database adapter will be automatically loaded when you pass a valid postgres URL, for example: `postgres://localhost:5432`. +The postgres database adapter will be automatically loaded when you pass a valid postgres URL, for example: `postgres://localhost:5432`. The available configuration options through the URL are `postgres://localhost:5432/db?ssl=boolean&rejectUnauthorized=boolean&ca=/path/to/file&pfx=/path/to/file&cert=/path/to/file&key=/path/to/file&passphrase=string&secureOptions=number&client_encoding=string&application_name=string&fallback_application_name=string&max=number&query_timeout=idleTimeoutMillis=number&poolSize=number&binary=boolean&keepAlive=boolean`. Details about the configuration options can be found on [pg-promise](https://github.com/vitaly-t/pg-promise/wiki/Connection-Syntax). ### Caveats * Join tables are resolved in memory, there is no performance improvements using Postgres over MongoDB for relations or pointers. * Mutating the schema implies running ALTER TABLE, therefore we recommend you setup your schema when your tables are not full. * Properly index your tables to maximize the performance. +* The postgres URL for 4.2.0 and below only supports the following configuration options `postgres://localhost:5432/db?ssl=boolean&client_encoding=string&application_name=string&fallback_application_name=string&poolSize=number&binary=boolean&keepAlive=boolean` From 5d1a41042b84461e82762bfb711023c957e0ff24 Mon Sep 17 00:00:00 2001 From: Corey Date: Fri, 24 Apr 2020 13:29:09 -0400 Subject: [PATCH 2/5] Added some ssl examples --- _includes/parse-server/database.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_includes/parse-server/database.md b/_includes/parse-server/database.md index 6230e960f..0b16a0412 100644 --- a/_includes/parse-server/database.md +++ b/_includes/parse-server/database.md @@ -28,7 +28,10 @@ The Postgres requirements for Parse Server are: * Postgres version 9.5 * PostGIS extensions 2.3 -The postgres database adapter will be automatically loaded when you pass a valid postgres URL, for example: `postgres://localhost:5432`. The available configuration options through the URL are `postgres://localhost:5432/db?ssl=boolean&rejectUnauthorized=boolean&ca=/path/to/file&pfx=/path/to/file&cert=/path/to/file&key=/path/to/file&passphrase=string&secureOptions=number&client_encoding=string&application_name=string&fallback_application_name=string&max=number&query_timeout=idleTimeoutMillis=number&poolSize=number&binary=boolean&keepAlive=boolean`. Details about the configuration options can be found on [pg-promise](https://github.com/vitaly-t/pg-promise/wiki/Connection-Syntax). +The postgres database adapter will be automatically loaded when you pass a valid postgres URL, for example: `postgres://localhost:5432`. The available configuration options through the URL are `postgres://localhost:5432/db?ssl=boolean&rejectUnauthorized=boolean&ca=/path/to/file&pfx=/path/to/file&cert=/path/to/file&key=/path/to/file&passphrase=string&secureOptions=number&client_encoding=string&application_name=string&fallback_application_name=string&max=number&query_timeout=idleTimeoutMillis=number&poolSize=number&binary=boolean&keepAlive=boolean`. Details about the configuration options can be found on [pg-promise](https://github.com/vitaly-t/pg-promise/wiki/Connection-Syntax). Some useful combinations are below: + +* SSL with verification - `postgres://localhost:5432/db?ca=/path/to/file` +* SSL with no verification - `postgres://localhost:5432/db?ssl=true&rejectUnauthorized=false` ### Caveats From 3dc9cf01fca1c76dc6633ea1d00ee9fcb81bf0ed Mon Sep 17 00:00:00 2001 From: Corey Date: Mon, 11 May 2020 17:50:58 -0400 Subject: [PATCH 3/5] Use coding block --- _includes/parse-server/database.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/parse-server/database.md b/_includes/parse-server/database.md index 0b16a0412..f9d5e392e 100644 --- a/_includes/parse-server/database.md +++ b/_includes/parse-server/database.md @@ -28,7 +28,7 @@ The Postgres requirements for Parse Server are: * Postgres version 9.5 * PostGIS extensions 2.3 -The postgres database adapter will be automatically loaded when you pass a valid postgres URL, for example: `postgres://localhost:5432`. The available configuration options through the URL are `postgres://localhost:5432/db?ssl=boolean&rejectUnauthorized=boolean&ca=/path/to/file&pfx=/path/to/file&cert=/path/to/file&key=/path/to/file&passphrase=string&secureOptions=number&client_encoding=string&application_name=string&fallback_application_name=string&max=number&query_timeout=idleTimeoutMillis=number&poolSize=number&binary=boolean&keepAlive=boolean`. Details about the configuration options can be found on [pg-promise](https://github.com/vitaly-t/pg-promise/wiki/Connection-Syntax). Some useful combinations are below: +The postgres database adapter will be automatically loaded when you pass a valid postgres URL, for example: `postgres://localhost:5432`. The available configuration options through the URL are ```postgres://localhost:5432/db?ssl=boolean&rejectUnauthorized=boolean&ca=/path/to/file&pfx=/path/to/file&cert=/path/to/file&key=/path/to/file&passphrase=string&secureOptions=number&client_encoding=string&application_name=string&fallback_application_name=string&max=number&query_timeout=idleTimeoutMillis=number&poolSize=number&binary=boolean&keepAlive=boolean```. Details about the configuration options can be found on [pg-promise](https://github.com/vitaly-t/pg-promise/wiki/Connection-Syntax). Some useful combinations are below: * SSL with verification - `postgres://localhost:5432/db?ca=/path/to/file` * SSL with no verification - `postgres://localhost:5432/db?ssl=true&rejectUnauthorized=false` @@ -38,4 +38,4 @@ The postgres database adapter will be automatically loaded when you pass a valid * Join tables are resolved in memory, there is no performance improvements using Postgres over MongoDB for relations or pointers. * Mutating the schema implies running ALTER TABLE, therefore we recommend you setup your schema when your tables are not full. * Properly index your tables to maximize the performance. -* The postgres URL for 4.2.0 and below only supports the following configuration options `postgres://localhost:5432/db?ssl=boolean&client_encoding=string&application_name=string&fallback_application_name=string&poolSize=number&binary=boolean&keepAlive=boolean` +* The postgres URL for 4.2.0 and below only supports the following configuration options ```postgres://localhost:5432/db?ssl=boolean&client_encoding=string&application_name=string&fallback_application_name=string&poolSize=number&binary=boolean&keepAlive=boolean``` From 42286c66931fbbd28220db45b26cbe92e7e0c3e1 Mon Sep 17 00:00:00 2001 From: Corey Date: Mon, 11 May 2020 17:52:38 -0400 Subject: [PATCH 4/5] More spacing --- _includes/parse-server/database.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/_includes/parse-server/database.md b/_includes/parse-server/database.md index f9d5e392e..fd9f022b6 100644 --- a/_includes/parse-server/database.md +++ b/_includes/parse-server/database.md @@ -28,7 +28,13 @@ The Postgres requirements for Parse Server are: * Postgres version 9.5 * PostGIS extensions 2.3 -The postgres database adapter will be automatically loaded when you pass a valid postgres URL, for example: `postgres://localhost:5432`. The available configuration options through the URL are ```postgres://localhost:5432/db?ssl=boolean&rejectUnauthorized=boolean&ca=/path/to/file&pfx=/path/to/file&cert=/path/to/file&key=/path/to/file&passphrase=string&secureOptions=number&client_encoding=string&application_name=string&fallback_application_name=string&max=number&query_timeout=idleTimeoutMillis=number&poolSize=number&binary=boolean&keepAlive=boolean```. Details about the configuration options can be found on [pg-promise](https://github.com/vitaly-t/pg-promise/wiki/Connection-Syntax). Some useful combinations are below: +The postgres database adapter will be automatically loaded when you pass a valid postgres URL, for example: `postgres://localhost:5432`. The available configuration options through the URL are: + +``` +postgres://localhost:5432/db?ssl=boolean&rejectUnauthorized=boolean&ca=/path/to/file&pfx=/path/to/file&cert=/path/to/file&key=/path/to/file&passphrase=string&secureOptions=number&client_encoding=string&application_name=string&fallback_application_name=string&max=number&query_timeout=idleTimeoutMillis=number&poolSize=number&binary=boolean&keepAlive=boolean +``` + +Details about the configuration options can be found on [pg-promise](https://github.com/vitaly-t/pg-promise/wiki/Connection-Syntax). Some useful combinations are below: * SSL with verification - `postgres://localhost:5432/db?ca=/path/to/file` * SSL with no verification - `postgres://localhost:5432/db?ssl=true&rejectUnauthorized=false` @@ -38,4 +44,7 @@ The postgres database adapter will be automatically loaded when you pass a valid * Join tables are resolved in memory, there is no performance improvements using Postgres over MongoDB for relations or pointers. * Mutating the schema implies running ALTER TABLE, therefore we recommend you setup your schema when your tables are not full. * Properly index your tables to maximize the performance. -* The postgres URL for 4.2.0 and below only supports the following configuration options ```postgres://localhost:5432/db?ssl=boolean&client_encoding=string&application_name=string&fallback_application_name=string&poolSize=number&binary=boolean&keepAlive=boolean``` +* The postgres URL for 4.2.0 and below only supports the following configuration options +``` +postgres://localhost:5432/db?ssl=boolean&client_encoding=string&application_name=string&fallback_application_name=string&poolSize=number&binary=boolean&keepAlive=boolean +``` From 1285886bcfcae47ca8b1850b8a8d45b8450e08fa Mon Sep 17 00:00:00 2001 From: Tom Fox <13188249+TomWFox@users.noreply.github.com> Date: Wed, 13 May 2020 23:52:18 +0100 Subject: [PATCH 5/5] nit --- _includes/parse-server/database.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/_includes/parse-server/database.md b/_includes/parse-server/database.md index fd9f022b6..ccf72fe94 100644 --- a/_includes/parse-server/database.md +++ b/_includes/parse-server/database.md @@ -44,7 +44,8 @@ Details about the configuration options can be found on [pg-promise](https://git * Join tables are resolved in memory, there is no performance improvements using Postgres over MongoDB for relations or pointers. * Mutating the schema implies running ALTER TABLE, therefore we recommend you setup your schema when your tables are not full. * Properly index your tables to maximize the performance. -* The postgres URL for 4.2.0 and below only supports the following configuration options -``` -postgres://localhost:5432/db?ssl=boolean&client_encoding=string&application_name=string&fallback_application_name=string&poolSize=number&binary=boolean&keepAlive=boolean -``` +* The postgres URL for 4.2.0 and below only supports the following configuration options: + + ``` + postgres://localhost:5432/db?ssl=boolean&client_encoding=string&application_name=string&fallback_application_name=string&poolSize=number&binary=boolean&keepAlive=boolean + ```