From d4657d7624f06418fa96c82840cec38598eeeb07 Mon Sep 17 00:00:00 2001 From: Rivery <9858560+xigongdaEricyang@users.noreply.github.com> Date: Mon, 30 Jan 2023 11:22:34 +0800 Subject: [PATCH] chore: update connect history api (#201) --- .gitignore | 1 - config.json | 15 --------------- webserver.js | 3 ++- 3 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 config.json diff --git a/.gitignore b/.gitignore index c83ee00b..b0cc55a7 100644 --- a/.gitignore +++ b/.gitignore @@ -34,7 +34,6 @@ docker/data docker/tmp .travis.yml appveyor.yml -server/config.json !dashboard.service.js !webserver.js !startWebserver.js diff --git a/config.json b/config.json deleted file mode 100644 index e8a10132..00000000 --- a/config.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "port": 7003, - "proxy":{ - "gateway":{ - "target": "http://192.168.8.44:8090" - }, - "prometheus":{ - "target": "192.168.8.44:9090" - } - }, - "nebulaServer": { - "ip": "192.168.8.131", - "port": 9669 - } -} diff --git a/webserver.js b/webserver.js index 5f9e7363..c4537df4 100644 --- a/webserver.js +++ b/webserver.js @@ -17,6 +17,7 @@ const config = loadYamlConfig(); const app = express(); -app.use(express.static('public')); app.use(historyApiCallback()); +app.use(express.static('public')); + startWebserver(app, config, pkg.version); \ No newline at end of file