|
|
@ -49,6 +49,8 @@ const app = express(), appConfig = express()
|
|
|
|
const appServer = require('http').createServer(app)
|
|
|
|
const appServer = require('http').createServer(app)
|
|
|
|
app.use(express.json())
|
|
|
|
app.use(express.json())
|
|
|
|
app.use(express.static('html_main'))
|
|
|
|
app.use(express.static('html_main'))
|
|
|
|
|
|
|
|
app.use(express.static(__dirname + '/node_modules/@mdi/font'))
|
|
|
|
|
|
|
|
|
|
|
|
appConfig.use(express.json())
|
|
|
|
appConfig.use(express.json())
|
|
|
|
appConfig.use(express.static('html'))
|
|
|
|
appConfig.use(express.static('html'))
|
|
|
|
|
|
|
|
|
|
|
@ -168,4 +170,4 @@ setInterval(memstats, 10e3)*/
|
|
|
|
appServer.listen(config.general.port)
|
|
|
|
appServer.listen(config.general.port)
|
|
|
|
if (config.general.configWebInterfaceEnabled === true) {
|
|
|
|
if (config.general.configWebInterfaceEnabled === true) {
|
|
|
|
appConfig.listen(config.general.configPort)
|
|
|
|
appConfig.listen(config.general.configPort)
|
|
|
|
}
|
|
|
|
}
|
|
|
|