Disable database SSL for internal network
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user