Skip to content

WikiJS + Azure Postgres Flexible Server -> "no pg_hba.conf entry for host" #6566

Answered by steg87
steg87 asked this question in Help / Questions
Discussion options

You must be logged in to vote

I figured it out. I noticed when logging in via psql that I got the following header:

psql (14.8 (Ubuntu 14.8-0ubuntu0.22.04.1), server 14.7)
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)
Type "help" for help.

It shows that it was using TLS, so therefore I assume Azure Postgres Flexible Server enforces TLS. All I had to do was include the env variable DB_SSL=true and it started working.

There was also a slight issue where I got the following error:

Database Connection Error: ERR_TLS_CERT_ALTNAME_INVALID undefined:undefined

But this was probably specific to my setup - I had been using a local hostname to access the database host and it di…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@diegoesilva
Comment options

Answer selected by NGPixel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants