update Mo 25. Mai 09:01:01 CEST 2020
This commit is contained in:
parent
4ada79ca9f
commit
5386a75237
10
server.js
10
server.js
@ -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);
|
||||
|
||||
@ -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']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user