Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Core System Services
PORT=3000
REDIS_URL=rediss://user:password@host:port
DATABASE_URL=postgresql://user:password@host:port/dbname
DATABASE_URL=postgresql://postgres.ABC-WASD-XYZ:[PASSWORD]@[aws-1-ap-south-1].pooler.supabase.com:6543/postgres
CORS_ORIGIN=*

# Azure Blob Storage (Shared Configuration)
Expand Down
6 changes: 3 additions & 3 deletions src/infrastructure/db/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export class PostgresVideoRepository implements VideoRepository {
constructor(connectionString: string) {
this.pool = new pg.Pool({
connectionString,
ssl: {
rejectUnauthorized: false,
},
max: 20,
idleTimeoutMillis: 30000,
connectionTimeoutMillis: 5000,
});
}

Expand Down
6 changes: 3 additions & 3 deletions test/queue-job.test.local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ async function main() {
const connectionString = env.databaseUrl;
const pool = new pg.default.Pool({
connectionString,
ssl: {
rejectUnauthorized: false
}
max: 20,
idleTimeoutMillis: 30000,
connectionTimeoutMillis: 5000,
});

try {
Expand Down
Loading