From 92255679062884fafc31eedf3fd2d5bc6431ba86 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Sun, 24 May 2020 21:01:01 +0200 Subject: [PATCH] update So 24. Mai 21:01:01 CEST 2020 --- server/app_cfg.js | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/server/app_cfg.js b/server/app_cfg.js index de571a7..c77ef8e 100644 --- a/server/app_cfg.js +++ b/server/app_cfg.js @@ -1,5 +1,6 @@ var app_cfg = {}; +// Server-Einstellungen app_cfg.global = { development: true, http_port: 3000, @@ -10,6 +11,7 @@ app_cfg.global = { mediapath: '/media/', time_to_delete_waip: 60, default_time_for_standby: 10, + defaultuser: 'me', defaultpass: '123', defaultuserip: '127.0.0.1', @@ -21,32 +23,35 @@ app_cfg.global = { app_id: process.pid }; +// Einstellungen zur Erscheinung der Seite app_cfg.public = { app_name: 'Wachalarm IP-Web', company: 'Leitstelle Lausitz', version: 'Version 1.2', map_tile: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', map_attribution: '© OpenStreetMap contributors', - // TODO: Link Impressium - own_imprint: false, + ext_imprint: false, url_imprint: 'https://www.nix.nix/impressium', - // TODO: Link Datenschutzerklärung, TLF-Sofort - own_privacy: false, + ext_privacy: false, url_privacy: 'https://www.nix.nix/datenschutz' }; +// Daten von anderen Servern empfangen app_cfg.api = { + enabled: true, secret: 'asdfwert1234567890#', access_list: ['192.168.2.20', '192.168.2.30'] }; -app_cfg.remote = { - endpoint_host: 'localhost', - endpoint_port: '8090', - endpoint_route: '/api', +// Daten an andere Server senden +app_cfg.endpoint = { + enabled: true, + host: '192.168.1.25', + port: '8090', + route: '/api', secret: 'asdfwert1234567890#', - allow_mission_type: ['Brandeinsatz', 'Hilfeleistung'], - allow_data_type: ['uuid', 'nummer', 'alarmzeit', 'art', 'stichwort', 'sondersignal', 'ort', 'ortsteil', 'wgs84_area'] + send_mission_type: ['Brandeinsatz', 'Hilfeleistung'], + send_data_type: ['uuid', 'nummer', 'alarmzeit', 'art', 'stichwort', 'sondersignal', 'ort', 'ortsteil', 'wgs84_area'] }; module.exports = app_cfg;