We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 635b18f commit 538c57eCopy full SHA for 538c57e
src/configs/db.config.ts
@@ -16,17 +16,17 @@ const poolConfig: pg.PoolConfig = {
16
max: 10, // 최대 연결 수
17
idleTimeoutMillis: 30000, // 연결 유휴 시간 (30초)
18
connectionTimeoutMillis: 5000, // 연결 시간 초과 (5초)
19
- ssl: false,
20
- // ssl: {
21
- // rejectUnauthorized: false,
22
- // },
+ // ssl: false,
+ ssl: {
+ rejectUnauthorized: false,
+ },
23
};
24
25
-// if (process.env.NODE_ENV === 'production') {
26
-// poolConfig.ssl = {
27
-// rejectUnauthorized: false,
28
-// };
29
-// }
+if (process.env.NODE_ENV === 'production') {
+ poolConfig.ssl = {
+ };
+}
30
31
const pool = new Pool(poolConfig);
32
0 commit comments