在我收到 no pg_hba.conf 错误之前,我更改了我的 postgrator 配置以尝试解决该问题。
目前看起来像:
require('dotenv').config();
const postString = process.env.DATABASE_URL + "?sslmode=require";
module.exports = {
"migrationsDirectory": "migrations",
"driver": "pg",
"connectionString": postString,
ssl: {
rejectUnauthorized: false
}
}
它给了我以下错误:
Error: self signed certificate
现在我不知道该怎么做。