-
Notifications
You must be signed in to change notification settings - Fork 92
tips: DATABASE_URL使用render的postsql数据库连接需要开启ssl #17
Copy link
Copy link
Closed
Description
使用默认render的连接
DATABASE_URL: postgresql://xxx_user:[email protected]/xxx
日志如下
error: SSL/TLS required
at file:///node_modules/.deno/[email protected]/node_modules/pg-pool/index.js:45:11
at eventLoopTick (ext:core/01_core.js:178:7)
at async initPostgresSchema (file:///src/src/db/models/metadata.ts:61:3)
at async getDb (file:///src/src/db/adapters/registry.ts:30:7)
at async Promise.all (index 0)
at async initializeServices (file:///src/src/db/db.ts:9:3) {
length: 37,
name: "error",
severity: "FATAL",
code: "28000",
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: undefined,
line: undefined,
routine: undefined
}
应当调整为
DATABASE_URL:postgresql://xxx_user:[email protected]/xxx?sslmode=require
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels