mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
External Postgresql (AWS RDS) does not connect properly #471
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DrPersico on GitHub (Apr 10, 2024).
I'm trying to use Planka with an external PostgreSQL 16.1 server that is hosted in AWS RDS, however, it seems I've come across what appears to be the same issue mentioned in: External Postgresql with SSL does not connect properly #494
I have no issues connecting to PostgreSQL via PgAdmin4.
Here's my Docker-compose.yml
Error:
I've tried the following:
allow,required, andno-verify.false.@meltyshev commented on GitHub (Apr 10, 2024):
Hi! Thanks for reporting this and providing the logs. We can't test this right now because we need to register in AWS to reproduce this, but that requires providing payment information. If anyone has a way to reproduce this without registering in AWS, we'd be happy to test and find the problem.
@tomudding commented on GitHub (Apr 14, 2024):
I have also seen this with a non-AWS PostgreSQL server that requires SSL. To fix it, we had to se
PGSSLMODEtorequiredand addssl=trueto the database URL. Havingsslmode=requirein the database URL does not work (and is also the reasonPGSSLMODEwas introduced in #404 from what I can tell).If you do not want to set
ssl=truein the database URL you will have to also setKNEX_REJECT_UNAUTHORIZED_SSL_CERTIFICATEtofalsesuch that thebuildSSLConfig()will not returnfalse(which would result in knex config havingssl: false). However, that is very bad in terms of security (you might as well disable SSL).