|
@@ -3,9 +3,15 @@ const express = require('express');
|
|
|
const app = express();
|
|
|
const app_serve = express();
|
|
|
const mysql = require('mysql2')
|
|
|
+const pool = mysql.createPool({
|
|
|
+ keepAliveInitialDelay: 10000,
|
|
|
+ enableKeepAlive: true,
|
|
|
+
|
|
|
+})
|
|
|
const db = mysql.createConnection({
|
|
|
- host: 'mc.andyxie.cn', user: 'instrunet', password: 'Moyingren2015', database: "instrunet_data"
|
|
|
+ host: 'mc.andyxie.cn', user: 'instrunet', password: 'Moyingren2015', database: "instrunet_data", pool: pool
|
|
|
})
|
|
|
+
|
|
|
const bodyParser = require("body-parser");
|
|
|
const nrc = require('node-run-cmd')
|
|
|
const https = require("node:https");
|