1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-09 07:25:24 +02:00

ref: Rename environment variable

This commit is contained in:
Maksim Eltyshev 2023-03-06 13:52:12 +01:00
parent 9f33778064
commit 60d9ceb4b5
3 changed files with 5 additions and 4 deletions

View file

@ -23,13 +23,14 @@ services:
- TRUST_PROXY=0
- DATABASE_URL=postgresql://postgres@postgres/planka
- SECRET_KEY=notsecretkey
# related: https://github.com/knex/knex/issues/2354
# As knex does not pass query parameters from the connection string we
# have to use environment variables in order to pass the desired values, e.g.
# PGSSLMODE=<value>
# - PGSSLMODE=<value>
# Configure knex to accept SSL certificates
# REJECT_UNAUTHORIZED_SSL_CERTIFICATE=false
# - KNEX_REJECT_UNAUTHORIZED_SSL_CERTIFICATE=false
depends_on:
- postgres

View file

@ -15,7 +15,7 @@ SECRET_KEY=notsecretkey
# PGSSLMODE=<value>
# Configure knex to accept SSL certificates
# REJECT_UNAUTHORIZED_SSL_CERTIFICATE=false
# KNEX_REJECT_UNAUTHORIZED_SSL_CERTIFICATE=false
## Do not edit this

View file

@ -7,7 +7,7 @@ dotenv.config({
});
function buildSSLConfig() {
if (process.env.REJECT_UNAUTHORIZED_SSL_CERTIFICATE === 'false') {
if (process.env.KNEX_REJECT_UNAUTHORIZED_SSL_CERTIFICATE === 'false') {
return {
rejectUnauthorized: false,
};