WikiJS + Azure Postgres Flexible Server -> "no pg_hba.conf entry for host" #6566
-
I am trying to set up WikiJS using our existing Azure Database for PostgreSQL flexible server. I followed the instructions for Docker installation at https://docs.requarks.io/install/docker. I have my launch command:
I get the following response.
The repeating I saw some solutions relating to Can anyone suggest what I am missing? I can get it to work when I use the docker compose example from the https://docs.requarks.io/install/docker page, but I want to set this up with our production database backend. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I figured it out. I noticed when logging in via psql that I got the following header:
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 There was also a slight issue where I got the following error:
But this was probably specific to my setup - I had been using a local hostname to access the database host and it didn't match the server name of the Azure database certificate. I just updated my hosts file and then it worked. |
Beta Was this translation helpful? Give feedback.
I figured it out. I noticed when logging in via psql that I got the following header:
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:
But this was probably specific to my setup - I had been using a local hostname to access the database host and it di…