-
Notifications
You must be signed in to change notification settings - Fork 15
/
dots_client.yaml
57 lines (48 loc) · 2.03 KB
/
dots_client.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
system:
# Default current values of session configuration
defaultSessionConfiguration:
heartbeatInterval: 30
missingHbAllowed: 5
maxRetransmit: 3
ackTimeout: 2.0
ackRandomFactor: 1.5
# Client restful api server configuration for connection from outside of go-dots
# If an external system want to connect to go-dots server, it must access to the dots_client by client restful api with configured port and prefixPath
clientRestfulApiConfiguration:
restfulApiAddress: ":"
restfulApiPort: 4545
restfulApiPath: /go-dots/v1
# The message task configuration for non-confirmable message (task interval and timeout in second)
nonConfirmableMessageTask:
taskInterval: 3
taskRetryNumber: 2
taskTimeout: 10
# The message task configuration for confirmable message (task interval and timeout in second)
confirmableMessageTask:
taskInterval: 0
taskRetryNumber: 0
taskTimeout: 10
secureFile:
clientCertFile: ../certs/client-cert.pem
clientKeyFile: ../certs/client-key.pem
certFile: ../certs/ca-cert.pem
# Time (seconds) before max-age to refresh Get session config
intervalBeforeMaxAge: 15
# Client request with block2 option at the first time
# initialRequestBlockSize: 3
# Client request without the block2 option at the first time.
# If client does not accept with the recommended block size from server, client can send a request with block2 option (new block size)
secondRequestBlockSize: 5
# Config of QBlock option
qBlockOption:
qBlockSize: 1
maxPayloads: 10
nonMaxRetransmit: 4
nonTimeout: 2
nonReceiveTimeout: 4
# The pinned certificates into the cache.
# If the 'referenceIdentifier' is one of the reference identifiers, the client pin each element in the 'presentIdentifierList' in to cache as key
# In case the server's certificate is not matching, the client compare between the server's certificate and the cache's key
pinnedCertificate:
referenceIdentifier: client.sample.example.com
presentIdentifierList: server.sample.example.com