Skip to content

Commit 0d1ce07

Browse files
authored
chore: enable SSL with rejectUnauthorized (#1039)
* chore: enable SSL with rejectUnauthorized for Sequencer MySQL * chore: enable SSL with rejectUnauthorized for Hub MySQL
1 parent c70cb3c commit 0d1ce07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/helpers/mysql.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ hubConfig.connectTimeout = 60e3;
1919
hubConfig.acquireTimeout = 60e3;
2020
hubConfig.timeout = 60e3;
2121
hubConfig.charset = 'utf8mb4';
22+
hubConfig.ssl = { rejectUnauthorized: true };
2223

2324
const hubDB = mysql.createPool(hubConfig);
2425

@@ -33,6 +34,8 @@ sequencerConfig.connectTimeout = 60e3;
3334
sequencerConfig.acquireTimeout = 60e3;
3435
sequencerConfig.timeout = 60e3;
3536
sequencerConfig.charset = 'utf8mb4';
37+
sequencerConfig.ssl = { rejectUnauthorized: true };
38+
3639
const sequencerDB = mysql.createPool(sequencerConfig);
3740

3841
bluebird.promisifyAll([Pool, Connection]);

0 commit comments

Comments
 (0)