Skip to content

Commit 4e5e8ea

Browse files
authored
chore: enable SSL with rejectUnauthorized (#576)
* chore: enable SSL with rejectUnauthorized for Sequencer MySQL * chore: enable SSL with rejectUnauthorized for Hub MySQL
1 parent adc019e commit 4e5e8ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/helpers/mysql.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ hubConfig.connectTimeout = 60e3;
2121
hubConfig.acquireTimeout = 60e3;
2222
hubConfig.timeout = 60e3;
2323
hubConfig.charset = 'utf8mb4';
24+
hubConfig.ssl = { rejectUnauthorized: true };
25+
2426
const hubDB = mysql.createPool(hubConfig);
2527

2628
// @ts-ignore
@@ -34,6 +36,8 @@ sequencerConfig.connectTimeout = 60e3;
3436
sequencerConfig.acquireTimeout = 60e3;
3537
sequencerConfig.timeout = 60e3;
3638
sequencerConfig.charset = 'utf8mb4';
39+
sequencerConfig.ssl = { rejectUnauthorized: true };
40+
3741
const sequencerDB = mysql.createPool(sequencerConfig);
3842

3943
export { hubDB as default, sequencerDB };

0 commit comments

Comments
 (0)