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