| 91 | }; |
| 92 | |
| 93 | export const getMd5Configuration = (tls: boolean): TcpConfiguration => { |
| 94 | return { |
| 95 | applicationName: config.postgres_md5.applicationName, |
| 96 | database: config.postgres_md5.database, |
| 97 | hostname: config.postgres_md5.hostname, |
| 98 | host_type: "tcp", |
| 99 | options: {}, |
| 100 | password: config.postgres_md5.password, |
| 101 | port: config.postgres_md5.port, |
| 102 | tls: tls ? enabled_tls : disabled_tls, |
| 103 | user: config.postgres_md5.users.md5, |
| 104 | }; |
| 105 | }; |
| 106 | |
| 107 | export const getMd5SocketConfiguration = (): SocketConfiguration => { |
| 108 | return { |