This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yml
80 lines (71 loc) · 3.95 KB
/
config.example.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
# Copyright 2018-2019 Banco Bilbao Vizcaya Argentaria, S.A.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
# Example configuration file for teaching porpouses
###############################################################################
log: error # Choose between log levels: silent, error, info and debug.
api_key: "my-key" # The application namespace used in all the nodes.
path: "/var/tmp/qed/" # Set root path used for dbpath, raftpath, private key and certificates.
profiling: false # Allow a pprof url (localhost:6060) for profiling purposes.
###############################################################################
# Server Configuration (where it collect and processes events).
###############################################################################
server:
node_id: "hostname" # Unique name for node. If not set, fallback to hostname.
metrics: false # Allow metrics
key: "/var/tmp/qed/id_ed25519" # Path to the ed25519 key file.
tls:
certificate: "/var/tmp/qed/server.crt" # Server certificate file
certificate_key: "/var/tmp/qed/server.key" # Server certificate key file
addr:
http: ":8800" # Endpoint for REST requests on (host:port).
mgmt: ":8700" # Management endpoint bind address (host:port).
metrics: ":8600" # Metrics endpoint (host:port). where raft node can join the current cluster
raft: ":8500" # Raft bind address (host:port). internal message passing
raft_join: # Raft: list of nodes ([host]:port), where the node can join the cluster using the mgmt endpoint
- "127.0.0.1:8700"
gossip: ":8400" # Gossip: management endpoint bind address (host:port).
gossip_join: # Gossip: list of nodes ([host]:port), through which a cluster can be joined.
- "127.0.0.1:8400"
path:
db: "/var/tmp/qed/db" # Set default storage path.
wal: "/var/tmp/qed/wal" # Set raft storage path.
###############################################################################
# Cient Configuration (cli commands `add` `incremental` and `verify`)
###############################################################################
client:
endpoints: # Endpoints for REST requests on [host:port, ...]
- "127.0.0.1:8800"
insecure: false # Allow self signed certificates
timeout:
connection: 10 # time in seconds to cut the ongoing connection
dial: 5 # time in seconds to cut the dialing of the connection
handshake: 5 # time in seconds to cut the handshakeing of the connection
###############################################################################
# Agent Configuration
###############################################################################
agent:
node: "nodeName" # Role for node, it can be only `auditor`, `monitor` or `publisher`
bind: ":8200" # Bind address for TCP/UDP gossip on (host:port)
advertise: "" # Address to advertise to cluster
metrics: "" # Address to bind metrics endpoint
join: # Comma-delimited list of nodes ([host]:port), through which a cluster can be joined
- "127.0.0.1:8400"
alert_urls: # List of Alert servers ([host]:port), through which an agent can post alerts
- "127.0.0.1:8888"
server_urls: # List of QED servers ([host]:port), through which an auditor can make queries
- "127.0.0.1:8800"
snapshots_store_urls: # List of end-publishers ([host]:port), through which an agent can send signedSnapshots or alerts
- "127.0.0.1:8888"