Skip to content

Commit

Permalink
Remove SSLmode require
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdotb committed Jul 3, 2023
1 parent cd6b636 commit a01261b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docker/with-external-db/logto.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ ADMIN_PORT="3002"
ADMIN_DISABLE_LOCALHOST="false"
ENDPOINT=""
NPM_CONFIG_LOGLEVEL="warn"
DB_URL="postgres://postgres:password@postgres:5432/logto?sslmode=require"
DB_URL="postgres://postgres:password@postgres:5432/logto"
ADMIN_ENDPOINT=""
NODE_ENV="production"
12 changes: 0 additions & 12 deletions docker/with-external-db/pg-init-scripts/add-db-cert.sh

This file was deleted.

2 changes: 0 additions & 2 deletions docker/with-external-db/postgres.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
POSTGRES_USER="postgres"
POSTGRES_PASSWORD="password"
POSTGRES_MULTIPLE_DATABASES="app,logto"
EXTERNAL_DB_CERT="-----BEGIN CERTIFICATE-----MIIC....eRiu-----END CERTIFICATE-----"
EXTERNAL_DB_CERT_KEY="<DB certificate private key contents>"
4 changes: 2 additions & 2 deletions docker/with-external-db/with-db.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ ALLOWED_ORIGINS="http://localhost:3000"

# Environment variables for External KMS
ENABLE_EXTERNAL_DB="true"
EXTERNAL_DB_CONNECTION_URL="postgres://postgres:password@postgres:5432/app?sslmode=require"
EXTERNAL_DB_CONNECTION_URL="postgres://postgres:password@postgres:5432/app"
EXTERNAL_DB_ENCRYPTION_KEY="<db-encryption-key>"
EXTERNAL_DB_CERT="-----BEGIN CERTIFICATE-----MIIC....eRiu-----END CERTIFICATE-----"
# EXTERNAL_DB_CERT="-----BEGIN CERTIFICATE-----MIIC....eRiu-----END CERTIFICATE-----"

# Environment variables for LogTo
ENABLE_AUTHENTICATION="true"
Expand Down

0 comments on commit a01261b

Please sign in to comment.