You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When connecting to a localhost postgres database via the DATABASE_URL env var, the app is able to connect and query just fine. Same is true of a bespoke public postgres TLS-connected endpoint, using fullchain certs. If I try to use a DATABASE_URL pointing at a managed postgres setup, however, the app throws the error SELF_SIGNED_CERT_IN_CHAIN:
Note that psql works just fine with this URL, so the connection problem is specific to the application code. After doing some reading, it appears there are workarounds like passing in a custom CA (which we can indeed fetch from the DO admin panel). Doing so will require updating the db connection logic in the app code:
When connecting to a localhost postgres database via the
DATABASE_URL
env var, the app is able to connect and query just fine. Same is true of a bespoke public postgres TLS-connected endpoint, using fullchain certs. If I try to use a DATABASE_URL pointing at a managed postgres setup, however, the app throws the errorSELF_SIGNED_CERT_IN_CHAIN
:Note that
psql
works just fine with this URL, so the connection problem is specific to the application code. After doing some reading, it appears there are workarounds like passing in a custom CA (which we can indeed fetch from the DO admin panel). Doing so will require updating the db connection logic in the app code:cuiloa/apps/web/src/lib/db.ts
Lines 4 to 6 in 1268001
Questions to answer:
The text was updated successfully, but these errors were encountered: