From f6a7790e92936fcca62ab7d84d3e82360e3ee9b7 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Sun, 22 Aug 2021 23:56:06 +0300 Subject: [PATCH] added more config environments --- .dockerignore | 5 +++++ config/config.json | 23 ++++++++++++++++++++--- src/setup_const.js | 13 ------------- 3 files changed, 25 insertions(+), 16 deletions(-) delete mode 100644 src/setup_const.js diff --git a/.dockerignore b/.dockerignore index 899a72b..c066477 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,5 +3,10 @@ npm-debug.log docs mysql.txt test.js + +# another container mysql +# custom +.vscode +cert diff --git a/config/config.json b/config/config.json index dbfb3a4..7213360 100644 --- a/config/config.json +++ b/config/config.json @@ -1,12 +1,27 @@ { "development": { - "username": "root", + "username": "iot", "database": "iot", + "password": "localdevdobri", "host": "127.0.0.1", "port":"3306", "dialect": "mysql", "operatorsAliases": false, - "logFile":"/dht.log" + "logFile":"/dht.log", + "gardenIP":"192.168.0.187", + "mqttIP": "192.168.0.10" + }, + "mitko": { + "host": "node-mysql", + "database": "iot", + "username": "root", + "password": "mitko2021", + "port":"3306", + "dialect": "mysql", + "operatorsAliases": false, + "logFile":"/dht.log", + "gardenIP":"192.168.0.187", + "mqttIP": "192.168.0.10" }, "production": { "username": "iot", @@ -16,6 +31,8 @@ "port":"3306", "dialect": "mysql", "operatorsAliases": false, - "logFile":"/var/www/dht.log" + "logFile":"/var/www/dht.log", + "gardenIP":"192.168.0.187", + "mqttIP": "192.168.0.10" } } diff --git a/src/setup_const.js b/src/setup_const.js deleted file mode 100644 index f534879..0000000 --- a/src/setup_const.js +++ /dev/null @@ -1,13 +0,0 @@ -module.exports = { - GardenIP: '192.168.0.187', - AcIP : '192.168.1.143', - HouseDhtIP : '192.168.1.126', - HomeControllerMQTT : '192.168.0.10',//GW02 - localPath : "", - foo: function () { - // whatever - }, - bar: function () { - // whatever - } - }; \ No newline at end of file