From 17fddc3408d0237832c43913d220b7f13fe1d53c Mon Sep 17 00:00:00 2001 From: Ruslan Konviser Date: Mon, 26 Feb 2024 11:36:06 +0100 Subject: [PATCH] chore: add env vars for DB SSL Settings default values --- .env.compose | 4 ++++ .env.demo.compose | 4 ++++ .env.docker | 4 ++++ .env.local | 4 ++++ .env.sample | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/.env.compose b/.env.compose index 4923faf9f67..521b146d66a 100644 --- a/.env.compose +++ b/.env.compose @@ -72,6 +72,10 @@ DB_POOL_SIZE_KNEX=10 DB_CONNECTION_TIMEOUT=5000 DB_IDLE_TIMEOUT=10000 DB_SLOW_QUERY_LOGGING_TIMEOUT=10000 +DB_SSL_MODE=false +# If you want to use SSL and set DB_SSL_MODE=true, set the following environment variable +# with base64 encoded SSL certificate for DB +DB_CA_CERT= REDIS_ENABLED=true # redis[s]://[[username][:password]@][host][:port][/db-number] diff --git a/.env.demo.compose b/.env.demo.compose index 1abcfe2cace..62ca8f34b2d 100644 --- a/.env.demo.compose +++ b/.env.demo.compose @@ -73,6 +73,10 @@ DB_POOL_SIZE_KNEX=10 DB_CONNECTION_TIMEOUT=5000 DB_IDLE_TIMEOUT=10000 DB_SLOW_QUERY_LOGGING_TIMEOUT=10000 +DB_SSL_MODE=false +# If you want to use SSL and set DB_SSL_MODE=true, set the following environment variable +# with base64 encoded SSL certificate for DB +DB_CA_CERT= # we don't run Redis in basic Demo setup REDIS_ENABLED=false diff --git a/.env.docker b/.env.docker index 9499e62db2b..abe583a99a6 100644 --- a/.env.docker +++ b/.env.docker @@ -71,6 +71,10 @@ DB_POOL_SIZE_KNEX=10 DB_CONNECTION_TIMEOUT=5000 DB_IDLE_TIMEOUT=10000 DB_SLOW_QUERY_LOGGING_TIMEOUT=10000 +DB_SSL_MODE=false +# If you want to use SSL and set DB_SSL_MODE=true, set the following environment variable +# with base64 encoded SSL certificate for DB +DB_CA_CERT= REDIS_ENABLED=false # redis[s]://[[username][:password]@][host][:port][/db-number] diff --git a/.env.local b/.env.local index 6dfcf91358f..9d3626dbbfb 100644 --- a/.env.local +++ b/.env.local @@ -73,6 +73,10 @@ DB_POOL_SIZE_KNEX=10 DB_CONNECTION_TIMEOUT=5000 DB_IDLE_TIMEOUT=10000 DB_SLOW_QUERY_LOGGING_TIMEOUT=10000 +DB_SSL_MODE=false +# If you want to use SSL and set DB_SSL_MODE=true, set the following environment variable +# with base64 encoded SSL certificate for DB +DB_CA_CERT= REDIS_ENABLED=false # redis[s]://[[username][:password]@][host][:port][/db-number] diff --git a/.env.sample b/.env.sample index 12d46b8ff74..15b0c54d424 100644 --- a/.env.sample +++ b/.env.sample @@ -57,6 +57,10 @@ DB_TYPE=better-sqlite3 # DB_CONNECTION_TIMEOUT=5000 # DB_IDLE_TIMEOUT=10000 # DB_SLOW_QUERY_LOGGING_TIMEOUT=10000 +# DB_SSL_MODE=false +## If you want to use SSL and set DB_SSL_MODE=true, set the following environment variable +## with base64 encoded SSL certificate for DB +# DB_CA_CERT= REDIS_ENABLED=false # redis[s]://[[username][:password]@][host][:port][/db-number]