Error: The server does not support SSL connections

Error: The server does not support SSL connections

M1 Mac 蒙特雷12.1

错误:服务器不支持 SSL 连接

我使用 postgres 服务器来 我运行下面的代码。

DATABASE_URL=$DATABASE_URL NODE_ENV=production yarn develop    

我正在将 strapi 与 postgres 服务器一起使用。 我做了 breww install openssl。

PostgreSQL 服务器不支持 SSL 连接。根据 the documentation,您应该将 sslmode=disable 添加到您的 JDBC 连接 URL 或作为连接参数。