fix: disable TLS encryption by default to avoid ServerName IP address warning
- Set encrypt: false as default for SQL Server connections - Fixes DEP0123 deprecation warning when connecting via IP address (VPN tunnel) - trustServerCertificate option still configurable via environment variable - Affects 6 files: sql-server.ts, bip-users-dao.ts, database/index.ts, database/data-source.ts, cleaner-handler.ts, validation-handler.ts
This commit is contained in:
@@ -35,7 +35,7 @@ export class SqlServerService implements IDatabaseService {
|
||||
password: this.config.password,
|
||||
database: this.config.database,
|
||||
options: {
|
||||
encrypt: this.config.options?.encrypt ?? true,
|
||||
encrypt: this.config.options?.encrypt ?? false,
|
||||
trustServerCertificate: this.config.options?.trustServerCertificate ?? false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user