Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error connecting to PostgreSQL with SSL #228

Open
kidsil opened this issue Feb 15, 2021 · 0 comments
Open

Error connecting to PostgreSQL with SSL #228

kidsil opened this issue Feb 15, 2021 · 0 comments

Comments

@kidsil
Copy link

kidsil commented Feb 15, 2021

When trying to connect to a PostgreSQL the following error occurs (on yarn run setup):
error: no pg_hba.conf entry for host "HOSTNAME", user "USERNAME", database "PASSWORD", SSL off

This is due to TypeORM not having the ssl: on option (and I couldn't find an existing .env var corresponding to it).

For now, to avoid changing the code for initial setup I've been running PGSSLMODE=require to fix this issue
(full command PGSSLMODE=require yarn run setup)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant