mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-05-11 19:23:06 +00:00
chore: modified code to use self-signed ssl certificates
This commit is contained in:
parent
d050976484
commit
a5b33da0fa
7 changed files with 89 additions and 7 deletions
|
@ -1,4 +1,5 @@
|
|||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { defineConfig } from 'drizzle-kit';
|
||||
|
||||
const config = JSON.parse(fs.readFileSync('./config.json', 'utf8'));
|
||||
|
@ -10,5 +11,10 @@ export default defineConfig({
|
|||
dialect: 'postgresql',
|
||||
dbCredentials: {
|
||||
url: database.dbConnectionString,
|
||||
ssl: {
|
||||
ca: fs.readFileSync(path.resolve('./certs/psql-ca.crt')),
|
||||
cert: fs.readFileSync(path.resolve('./certs/psql-server.crt')),
|
||||
key: fs.readFileSync(path.resolve('./certs/psql-client.key')),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue