mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 12:49:43 +02:00
revert: Allow postgres connections that require ssl mode (#408)
This reverts commit d627a5660a
.
This commit is contained in:
parent
0eeb10a4b0
commit
e93cc88f5c
3 changed files with 1 additions and 16 deletions
|
@ -23,11 +23,6 @@ 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.
|
||||
# note: this is optional
|
||||
# PGSSLMODE=require
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
|
|
|
@ -9,11 +9,6 @@ SECRET_KEY=notsecretkey
|
|||
# TRUST_PROXY=0
|
||||
# TOKEN_EXPIRES_IN=365 # In days
|
||||
|
||||
# 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>
|
||||
|
||||
## Do not edit this
|
||||
|
||||
TZ=UTC
|
||||
|
|
|
@ -8,12 +8,7 @@ dotenv.config({
|
|||
|
||||
module.exports = {
|
||||
client: 'pg',
|
||||
connection: {
|
||||
connectionString: process.env.DATABASE_URL,
|
||||
ssl: {
|
||||
rejectUnauthorized: false,
|
||||
},
|
||||
},
|
||||
connection: process.env.DATABASE_URL,
|
||||
migrations: {
|
||||
tableName: 'migration',
|
||||
directory: path.join(__dirname, 'migrations'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue