File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ hubConfig.connectTimeout = 60e3;
21
21
hubConfig . acquireTimeout = 60e3 ;
22
22
hubConfig . timeout = 60e3 ;
23
23
hubConfig . charset = 'utf8mb4' ;
24
+ hubConfig . ssl = { rejectUnauthorized : hubConfig . host !== 'localhost' } ;
25
+
24
26
const hubDB = mysql . createPool ( hubConfig ) ;
25
27
26
28
// @ts -ignore
@@ -34,6 +36,8 @@ sequencerConfig.connectTimeout = 60e3;
34
36
sequencerConfig . acquireTimeout = 60e3 ;
35
37
sequencerConfig . timeout = 60e3 ;
36
38
sequencerConfig . charset = 'utf8mb4' ;
39
+ sequencerConfig . ssl = { rejectUnauthorized : sequencerConfig . host !== 'localhost' } ;
40
+
37
41
const sequencerDB = mysql . createPool ( sequencerConfig ) ;
38
42
39
43
export { hubDB as default , sequencerDB } ;
Original file line number Diff line number Diff line change 1
- HUB_DATABASE_URL = mysql://root:root@127.0.0.1 :3306/snapshot_sequencer_test
2
- SEQ_DATABASE_URL = mysql://root:root@127.0.0.1 :3306/snapshot_sequencer_test
1
+ HUB_DATABASE_URL = mysql://root:root@localhost :3306/snapshot_sequencer_test
2
+ SEQ_DATABASE_URL = mysql://root:root@localhost :3306/snapshot_sequencer_test
3
3
NETWORK = mainnet
4
4
RELAYER_PK = 01686849e86499c1860ea0afc97f29c11018cbac049abf843df875c60054076e
5
5
NODE_ENV = test
You can’t perform that action at this time.
0 commit comments