Disable database SSL for internal network

This commit is contained in:
Hamza-Ayed
2026-04-17 01:15:54 +03:00
parent 40964f0bb8
commit 1cfe3f6ca6

View File

@@ -27,10 +27,8 @@ export const databaseConfig: TypeOrmModuleAsyncOptions = {
// NEVER synchronize — use migrations only
synchronize: false,
// SSL in production
ssl: configService.get<string>('NODE_ENV') === 'production'
? { rejectUnauthorized: false }
: false,
// SSL is not required for internal Docker network
ssl: false,
// Logging based on environment
logging: configService.get<string>('NODE_ENV') === 'development'