update Mo 15. Jun 11:31:02 CEST 2020

This commit is contained in:
Robert Richter 2020-06-15 11:31:02 +02:00
parent bd0b16d962
commit a1439e59c2
2 changed files with 16 additions and 6 deletions

View File

@ -21,7 +21,7 @@ module.exports = function (io, sql, app_cfg, waip) {
// Remote-Verbindung nur zulassen, wenn IP in Access-List, und Access-List ueberhaupt befuellt
if (!app_cfg.api.access_list.includes(remote_ip) && app_cfg.api.access_list.length > 0) {
socket.terminate();
socket.disconnect(true);
sql.db_log('API', 'Verbindung von ' + remote_ip + ' geschlossen, da nicht in Zugangsliste.');
};

View File

@ -45,7 +45,7 @@ app_cfg.rmld = {
app_cfg.api = {
enabled: true,
secret: 'asdfwert1234567890#',
access_list: ['192.168.2.20', '192.168.2.30']
access_list: ['192.168.2.20', '192.168.2.30', '80.147.87.170']
};
// Schnittstelle um Daten an andere Server zu senden
@ -59,7 +59,17 @@ app_cfg.endpoint = {
app_cfg.filter = {
enabled: true,
on_message_from: ['192.168.2.20', 'https://192.168.1.25:8090/api'],
remove_data: ['besonderheiten', 'strasse', 'objekt', 'objektnr', 'wachfolge', 'wgs84_x', 'wgs84_y']
remove_data: ['besonderheiten', 'strasse', 'objekt', 'objektnr', 'wachfolge', 'wgs84_x', 'wgs84_y'],
block_data: [{
for_wache: '520101',
block: ['Rettungseinsatz', 'Krankentransport']
}, {
for_wache: '520102',
block: ['Rettungseinsatz', 'Krankentransport']
}, {
for_wache: '520103',
block: ['Rettungseinsatz', 'Krankentransport']
}]
};
module.exports = app_cfg;