-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from icdocsoc/feat/support-postgres-crt
feat: support for postgresql certificate for ssl connections
- Loading branch information
Showing
3 changed files
with
13 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,6 @@ ROOT_USER_EMAIL="[email protected]" | |
# Replace "postgres:postgres" with "<username>:<password>" | ||
# And docsoc-tools-collection with the name of the database you are using | ||
COLLECTION_DATABASE_URL="postgres://postgres:postgres@localhost:5432/docsoc-tools-collection" | ||
|
||
# Optional PSQL certicate if the connection occurs over SSL | ||
PG_CERT= |
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
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,8 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
# This is to be used with the Docker Container only! | ||
# The script loads the PSQL certificate and starts the server. | ||
|
||
echo $PG_CERT > ./prisma/postgres.crt | ||
|
||
node server.js |