Update dependencies and production setup for enhanced security and stability

Add bcrypt and encoding libraries, update iconv-lite, and refactor production authentication and database initialization to use native Node.js crypto and improve security.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d396e5bd-e32d-4a20-9e7d-71e7102ddc6c
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/d396e5bd-e32d-4a20-9e7d-71e7102ddc6c/kxiUCTd
This commit is contained in:
michaelschal committed 2025-08-11 14:50:55 +00:00
1 parent 2485f71dd7
commit 7e6dccfadf
15 files changed
+195 -7251

No files matched your search

-15
View File
@@ -1,15 +0,0 @@
import { Pool } from 'pg';
import { drizzle } from 'drizzle-orm/node-postgres';
import * as schema from '../shared/schema';
// Production database configuration using standard PostgreSQL
const pool = new Pool({
connectionString: process.env.DATABASE_URL,
ssl: false, // Docker internal connection doesn't need SSL
max: 20, // Maximum number of connections
idleTimeoutMillis: 30000,
connectionTimeoutMillis: 2000,
});
export const db = drizzle(pool, { schema });
export { pool };