Skip to content

Commit 1daec30

Browse files
cbaker6TomWFox
andauthored
Add updated posgres url information (#731)
* Add additional posgres url information * Added some ssl examples * Use coding block * More spacing * nit Co-authored-by: Tom Fox <[email protected]>
1 parent 7042a47 commit 1daec30

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

_includes/parse-server/database.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,24 @@ The Postgres requirements for Parse Server are:
2828
* Postgres version 9.5
2929
* PostGIS extensions 2.3
3030

31-
The postgres database adapter will be automatically loaded when you pass a valid postgres URL, for example: `postgres://localhost:5432`.
31+
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:
32+
33+
```
34+
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
35+
```
36+
37+
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:
38+
39+
* SSL with verification - `postgres://localhost:5432/db?ca=/path/to/file`
40+
* SSL with no verification - `postgres://localhost:5432/db?ssl=true&rejectUnauthorized=false`
3241

3342
### Caveats
3443

3544
* Join tables are resolved in memory, there is no performance improvements using Postgres over MongoDB for relations or pointers.
3645
* Mutating the schema implies running ALTER TABLE, therefore we recommend you setup your schema when your tables are not full.
3746
* Properly index your tables to maximize the performance.
47+
* The postgres URL for 4.2.0 and below only supports the following configuration options:
48+
49+
```
50+
postgres://localhost:5432/db?ssl=boolean&client_encoding=string&application_name=string&fallback_application_name=string&poolSize=number&binary=boolean&keepAlive=boolean
51+
```

0 commit comments

Comments
 (0)