Merge pull request #48 from dokku/lg-secure-connection

Enable SSL for connections to database
This commit is contained in:
Loïc Guitaut
2015-12-07 17:48:14 +01:00
4 changed files with 21 additions and 0 deletions

View File

@@ -157,3 +157,12 @@ The `import` command should be used with any non-plain-text files exported by `p
```shell
$ dokku postgres:connect db < ./dump.sql
```
## security
The connection to the database is done over SSL. A self-signed certificate is
automatically generated when creating the service. It can be replaced by a
custom certificate by overwriting the `server.crt` and `server.key` files in
`/var/lib/dokku/services/postgres/<DB_NAME>/data`.
The `server.key` must be chmoded to 600 and must be owned by the postgres user
or root.