files moved

This commit is contained in:
Dobromir Popov
2023-05-15 12:50:12 +03:00
parent 53a8dc8cdf
commit 2dab7fe31c
5 changed files with 7 additions and 31 deletions

View File

@@ -10,6 +10,7 @@ WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
#RUN npm install
COPY . .

View File

@@ -64,12 +64,12 @@ app.use(morgan('combined'));
//defining endpoints
//!UI
var auth = require('./src/auth.js');
var auth = require('../src/auth.js');
var ac = require('./ac.js');
var db = require('./src/db');
var mqtt = require('./src/mqtt.js');
var ir = require('./src/devices/ir');
var u = require('./src/utils');
var db = require('../src/db');
var mqtt = require('../src/mqtt.js');
var ir = require('../src/devices/ir');
var u = require('../src/utils');
app.use(auth.init());

26
package-lock.json generated
View File

@@ -2793,19 +2793,6 @@
"integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
"optional": true
},
"node_modules/fs-ext": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/fs-ext/-/fs-ext-0.5.0.tgz",
"integrity": "sha512-ps+JdoiKfFzsAe+d7Wm7nQyPY30QCtRD3/uvdczARPDJhpjMNbcRwh/I4k82kThLHTbUGkOY8Ex04xE5F7/Umg==",
"hasInstallScript": true,
"optional": true,
"dependencies": {
"nan": "^2.0"
},
"engines": {
"node": ">= v0.8.0"
}
},
"node_modules/fs-extra": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
@@ -2824,19 +2811,6 @@
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
"integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
},
"node_modules/fsevents": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"hasInstallScript": true,
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/fstream": {
"version": "1.0.12",
"resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz",

View File

@@ -22,6 +22,7 @@ var mqtt_settings = {
};
if (typeof credentials !== "undefined") {
console.log("MQTT: trying SECURE connection");
mqtt_settings.secure = {
host: process.env.MQTT_HOST || config.mqttIP,
port: process.env.MQTT_PORT_HTTPS || config.mqttPortHttps || 8444,