diff --git a/webmodule.js b/webmodule.js index 70fada6f..aac9ed16 100644 --- a/webmodule.js +++ b/webmodule.js @@ -3,7 +3,6 @@ const http = require('http') const path = require('path') const express = require('express') const compression = require('compression') -const { createProxyMiddleware } = require('http-proxy-middleware') const { CONFIG, CONFIG_Port } = require('./config') @@ -70,14 +69,6 @@ module.exports = () => { wbrun(app) wbeapp(app) - app.use(['/eproxy-logs', '/dist', '/latestLog', '/do-not-proxy', '/api/getInitData', '/fetchBody'], createProxyMiddleware({ - target: 'http://localhost:' + CONFIG_Port.webif, - changeOrigin: true, - logLevel: CONFIG.gloglevel || 'info', - pathRewrite: { - '^/eproxy-logs': '/', - }, - })) app.use((req, res, next) => { res.status(404).send(htmlTemplate(`