diff --git a/docker/with-external-db/logto.env b/docker/with-external-db/logto.env index cb53258b..4a9ab004 100644 --- a/docker/with-external-db/logto.env +++ b/docker/with-external-db/logto.env @@ -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" diff --git a/docker/with-external-db/pg-init-scripts/add-db-cert.sh b/docker/with-external-db/pg-init-scripts/add-db-cert.sh deleted file mode 100644 index 3c43a011..00000000 --- a/docker/with-external-db/pg-init-scripts/add-db-cert.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -# Create blank custom CA certificate file -touch /usr/local/share/ca-certificates/external-db-cert.crt - -# Insert custom CA certificate contents from environment variable into file -echo "$EXTERNAL_DB_CERT" | tee /usr/local/share/ca-certificates/external-db-cert.crt > /dev/null - -# Update CA certificates -update-ca-certificates diff --git a/docker/with-external-db/postgres.env b/docker/with-external-db/postgres.env index bc551fd4..304e2fbe 100644 --- a/docker/with-external-db/postgres.env +++ b/docker/with-external-db/postgres.env @@ -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="" diff --git a/docker/with-external-db/with-db.env b/docker/with-external-db/with-db.env index 56d98b87..7abafbe2 100644 --- a/docker/with-external-db/with-db.env +++ b/docker/with-external-db/with-db.env @@ -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="" -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"