Skip to content

Commit

Permalink
chore: add env vars for DB SSL Settings default values
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq committed Feb 26, 2024
1 parent 7db70d0 commit 17fddc3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env.compose
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 4 additions & 0 deletions .env.demo.compose
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 4 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 4 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 17fddc3

Please sign in to comment.