added devcontainer.

fix build error, deploy using docker-compose works,
misc changes
using global MQTT instead of local one to tap to already existin broker
This commit is contained in:
Dobromir Popov ONE
2023-05-14 21:40:57 +03:00
parent 145e202d24
commit 95ce6e8c87
7 changed files with 78 additions and 14 deletions

View File

@@ -98,6 +98,7 @@ app.get('/accontrol',
//app.listen(81);
try{
var fs = require("fs");
var https = require('https');
var privateKey = fs.readFileSync('/etc/letsencrypt/live/iot.d-popov.com/privkey.pem', 'utf8');
@@ -108,3 +109,6 @@ var httpsServer = https.createServer(credentials, app);
httpsServer.listen(8443, () => {
console.log('HTTP server listening on port 8443');
});
}catch(e){
console.log("failed to start HTTPS: " + e.toString())
}