Projekt

Obecné

Profil

Stáhnout (1.72 KB) Statistiky
| Větev: | Tag: | Revize:
1 22c09a00 silhavyj
# This file is the configuration of the application.
2
# ==================================================
3
4 bba28c53 silhavyj
[usb_detector]
5 22c09a00 silhavyj
# Number of seconds after which all USB devices are periodically scanned.
6
# This value is a float number. It can be set to, for example, 0.1, 0.5, 300, etc.
7 bba28c53 silhavyj
scan_period_seconds = 1
8 22c09a00 silhavyj
9
# Path to the file that contains a list of the currently
10
# connected USB devices. This file is updated whenever a device
11
# is plugged or unplugged.
12 bba28c53 silhavyj
connected_devices_filename = data/devices.json
13
14 22c09a00 silhavyj
# ==================================================
15
16 bba28c53 silhavyj
[server]
17 22c09a00 silhavyj
# IP address of the server that the client sends data to.
18 bba28c53 silhavyj
url = http://127.0.0.1
19 22c09a00 silhavyj
20
# Port that the server listens on.
21 bba28c53 silhavyj
port = 8000
22 22c09a00 silhavyj
23
# Endpoint through which the server receives data from the client.
24
# These three values (url, port, end_point) make up a URI that is
25
# created internally by the client e.g. http://127.0.0.1:8000/api/v1/usb-logs
26 bba28c53 silhavyj
end_point = /api/v1/usb-logs
27
28 22c09a00 silhavyj
# ==================================================
29
30 bba28c53 silhavyj
[logger]
31 22c09a00 silhavyj
# Path to the logger configuration file
32 9219c992 silhavyj
config_file = ../resources/logger.conf
33 76b68bb9 silhavyj
34 22c09a00 silhavyj
# ==================================================
35
36 76b68bb9 silhavyj
[cache]
37 22c09a00 silhavyj
# Name of the folder where the cache is held. This folder is created
38
# automatically by the client.
39 76b68bb9 silhavyj
directory = data
40 22c09a00 silhavyj
41 675e5fb6 silhavyj
# Number of seconds after which the application attempts to resend a predefined
42 22c09a00 silhavyj
# number of cached payloads to the server (periodically).
43 731a638d silhavyj
retry_period_seconds = 20
44 22c09a00 silhavyj
45
# Maximum number of entries (payloads) that can be cached. If the total number of cached
46
# payloads reaches this number, the application will discard the oldest record with
47
# every new payload (FIFO - queue).
48
max_entries = 100
49
50
# Number of cached entries (payloads) that can be sent to the server at a time (within one period).
51
max_retries = 20