-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BE-685 Add options for TLS connection to Postgresql
Change-Id: I7d066cad0c2c28268a635b1c65c017d31347dc0e Signed-off-by: plap <plap@softserveinc.com>
- Loading branch information
Showing
3 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/persistence/postgreSQL/CONFIGURE-TLS-CONNECTION-TO-POSTGRESQL.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
<!-- (SPDX-License-Identifier: CC-BY-4.0) --> <!-- Ensure there is a newline before, and after, this line --> | ||
|
||
# TLS connection to Postgresql | ||
|
||
In order to configure TLS connection to Postgresql take next steps: | ||
|
||
- [Optional] pass environment variable `DATABASE_CERTS_PATH`, default is `/opt/explorer/db-certs` | ||
|
||
- put certificates into folder specified by `DATABASE_CERTS_PATH`. There should be three files: | ||
|
||
- `client-cert.pem` | ||
- `client-key.pem` | ||
- `server-ca.pem` | ||
|
||
- pass environment variable `DATABASE_SSL_ENABLED=true` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters