mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 12:49:43 +02:00
feat: Allow postgres connections that require ssl mode (#404)
Closes #261
This commit is contained in:
parent
becf4afe85
commit
d627a5660a
3 changed files with 16 additions and 1 deletions
|
@ -9,6 +9,11 @@ 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,7 +8,12 @@ dotenv.config({
|
|||
|
||||
module.exports = {
|
||||
client: 'pg',
|
||||
connection: process.env.DATABASE_URL,
|
||||
connection: {
|
||||
connectionString: process.env.DATABASE_URL,
|
||||
ssl: {
|
||||
rejectUnauthorized: false,
|
||||
},
|
||||
},
|
||||
migrations: {
|
||||
tableName: 'migration',
|
||||
directory: path.join(__dirname, 'migrations'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue