diff --git a/lib/interfaces/postgres-options.interface.ts b/lib/interfaces/postgres-options.interface.ts index 59f24e1..bf40438 100644 --- a/lib/interfaces/postgres-options.interface.ts +++ b/lib/interfaces/postgres-options.interface.ts @@ -8,7 +8,7 @@ export interface PostgresModuleOptions { password?: string; user?: string; port?: number; - ssl?: boolean; + ssl?: boolean | PostgresSSLOptions; connectionString?: string; retryAttempts?: number; retryDelay?: number; @@ -20,3 +20,10 @@ export interface PostgresModuleOptions { connectionTimeoutMillis?: number; idleInTransactionSessionTimeout?: number; } + +interface PostgresSSLOptions { + rejectUnauthorized?: boolean; + ca?: string; + key?: string; + cert?: string; +}