Removing the static ENV var for nearby systems
This commit is contained in:
@@ -19,7 +19,6 @@ CLIENT_NAME=""
|
|||||||
CLIENT_IP=""
|
CLIENT_IP=""
|
||||||
CLIENT_PORT=3010
|
CLIENT_PORT=3010
|
||||||
CLIENT_LOCATION=""
|
CLIENT_LOCATION=""
|
||||||
CLIENT_NEARBY_SYSTEMS=""
|
|
||||||
CLIENT_ONLINE=true
|
CLIENT_ONLINE=true
|
||||||
|
|
||||||
# Configuration for the connection to the server
|
# Configuration for the connection to the server
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
// Core config settings for the node, these are the settings that are checked with the server
|
|
||||||
exports.nodeConfig = {
|
|
||||||
"id": 0,
|
|
||||||
"name": "",
|
|
||||||
"ip": "",
|
|
||||||
"port": 0,
|
|
||||||
"location": "",
|
|
||||||
"nearbySystems": {
|
|
||||||
"System Name": {
|
|
||||||
"frequencies": [],
|
|
||||||
"mode": "",
|
|
||||||
"trunkFile": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"online": false
|
|
||||||
}
|
|
||||||
@@ -8,10 +8,10 @@ const modes = require("../config/modes");
|
|||||||
const { executeAsyncConsoleCommand, nodeObject } = require("../utilities/utilities");
|
const { executeAsyncConsoleCommand, nodeObject } = require("../utilities/utilities");
|
||||||
// Utilities
|
// Utilities
|
||||||
const { updateId, updateConfig } = require("../utilities/updateConfig");
|
const { updateId, updateConfig } = require("../utilities/updateConfig");
|
||||||
const {updatePreset, addNewPreset, getPresets, removePreset} = require("../utilities/updatePresets");
|
const { updatePreset, addNewPreset, getPresets, removePreset } = require("../utilities/updatePresets");
|
||||||
const { onHttpError, requestOptions, sendHttpRequest } = require("../utilities/httpRequests");
|
const { onHttpError, requestOptions, sendHttpRequest } = require("../utilities/httpRequests");
|
||||||
|
|
||||||
var runningClientConfig = new nodeObject({_id: process.env.CLIENT_ID, _ip: process.env.CLIENT_IP, _name: process.env.CLIENT_NAME, _port: process.env.CLIENT_PORT, _location: process.env.CLIENT_LOCATION, _nearbySystems: process.env.CLIENT_NEARBY_SYSTEMS, _online: process.env.CLIENT_ONLINE});
|
var runningClientConfig = new nodeObject({_id: process.env.CLIENT_ID, _ip: process.env.CLIENT_IP, _name: process.env.CLIENT_NAME, _port: process.env.CLIENT_PORT, _location: process.env.CLIENT_LOCATION, _nearbySystems: getPresets(), _online: process.env.CLIENT_ONLINE});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check the body for the required fields to update or add a preset
|
* Check the body for the required fields to update or add a preset
|
||||||
|
|||||||
Reference in New Issue
Block a user