yoosangwook b97af6338e chore: update database connection settings and enhance Prisma client configuration
- Added connection timeout to DATABASE_URL in .env.
- Introduced DATABASE_CONNECTION_LIMIT, DATABASE_POOL_MIN, and DATABASE_POOL_MAX for connection pooling.
- Enhanced Prisma client initialization with logging and connection pool settings.
- Implemented graceful disconnection on process termination signals.
2025-06-11 17:36:15 +09:00

15 lines
992 B
Bash

# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
# DATABASE_URL="sqlserver://3team.devgrr.kr:1433;database=onsitesurvey;user=sa;password=1q2w3e4r!;encrypt=true;trustServerCertificate=true;"
DATABASE_URL="sqlserver://3team.devgrr.kr:1433;database=onsitesurvey;user=sa;password=1q2w3e4r!;encrypt=true;trustServerCertificate=true;connectionTimeout=30000"
# DATABASE_URL="mysql://root:root@localhost:3306/onsitesurvey"
DATABASE_CONNECTION_LIMIT=10
DATABASE_POOL_MIN=2
DATABASE_POOL_MAX=10
# SESSION_PASSWORD="QWERASDFZXCV1234567890REWQFDSAVCXZ"
SESSION_PASSWORD="This application is for mobile field research"