update Mo 25. Mai 09:01:01 CEST 2020

This commit is contained in:
Robert Richter 2020-05-25 09:01:01 +02:00
parent 4ada79ca9f
commit 5386a75237
2 changed files with 11 additions and 1 deletions

View File

@ -37,6 +37,16 @@ app.use(bodyParser.urlencoded({
extended: false
}));
// Endpoint-API
if (app_cfg.endpoint.enabled) {
const remote_api = io_api.connect(app_cfg.global.remoteapi, {
reconnect: true
});
} else {
const remote_api;
};
// Scripte einbinden
var sql_cfg = require('./server/sql_cfg')(fs, bcrypt, app_cfg);
var sql = require('./server/sql_qry')(sql_cfg, uuidv4, turf, app_cfg);

View File

@ -48,7 +48,7 @@ app_cfg.endpoint = {
enabled: true,
host: '192.168.1.25',
port: '8090',
route: '/api',
nsp: '/api',
secret: 'asdfwert1234567890#',
send_mission_type: ['Brandeinsatz', 'Hilfeleistung'],
send_data_type: ['uuid', 'nummer', 'alarmzeit', 'art', 'stichwort', 'sondersignal', 'ort', 'ortsteil', 'wgs84_area']