-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.js
More file actions
26 lines (23 loc) · 798 Bytes
/
Copy pathdatabase.js
File metadata and controls
26 lines (23 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const Pool = require("pg").Pool;
/*
const pool = new Pool({
user: "postgres",
host: "localhost",
database: "SACF",
password: "xxx",
port: 5432,
});
*/
const pool = new Pool({
user: "bojorge",
host: "dpg-cf5ku4kgqg47vk5p3860-a.oregon-postgres.render.com",
database: "sacf_db",
password: "klQYvwAgCXBzbPmAQkH69LISrae4OVGv",
ssl: { "rejectUnauthorized": false },
//rejectUnauthorized: false,//add when working with https sites
//requestCert: false,//add when working with https sites
//agent: false,//add when working with https sites
port: 5432,
//uri: "postgres://ojgrffiqcutdjy:f1172a619a1c25e586cae8e33ef3cc762744f817876cf8c1535abff96a592c1d@ec2-44-206-214-233.compute-1.amazonaws.com:5432/ddm46h90v1f25t",
});
module.exports = pool;