JCKalt / General-Work

Modeling database
0 stars 0 forks source link

debug Eyedro access on PGUI: #130

Open JCKalt opened 9 months ago

JCKalt commented 9 months ago

This work: https://chat.openai.com/share/3e7f5507-c5f3-4724-9feb-7e43ec075089

JCKalt commented 9 months ago

added ssl decl below to fix db access inside: src/pages/api/getDeviceInfo.js

const pool = new Pool({ host: process.env.PGHOST_2, port: process.env.PGPORT_2, database: process.env.PGDATABASE_2, user: process.env.PGUSER_2, ssl: { rejectUnauthorized: false } });

JCKalt commented 9 months ago

Need to research how to remove need for ssl: { rejectUnauthorized: false }