Projekt

Obecné

Profil

Stáhnout (1.72 KB) Statistiky
| Větev: | Tag: | Revize:
1
# This file is the configuration of the application.
2
# ==================================================
3

    
4
[usb_detector]
5
# 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
scan_period_seconds = 1
8

    
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
connected_devices_filename = data/devices.json
13

    
14
# ==================================================
15

    
16
[server]
17
# IP address of the server that the client sends data to.
18
url = http://127.0.0.1
19

    
20
# Port that the server listens on.
21
port = 8000
22

    
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
end_point = /api/v1/usb-logs
27

    
28
# ==================================================
29

    
30
[logger]
31
# Path to the logger configuration file
32
config_file = ../resources/logger.conf
33

    
34
# ==================================================
35

    
36
[cache]
37
# Name of the folder where the cache is held. This folder is created
38
# automatically by the client.
39
directory = data
40

    
41
# Number of seconds after which the application attempts to resent a predefined
42
# number of cached payloads to the server (periodically).
43
retry_period_seconds = 20
44

    
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
(1-1/2)