-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.example.yaml
86 lines (77 loc) · 2.03 KB
/
config.example.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Application Configuration Example
# Database Configuration
db:
# Database engine [sqlite|postgres] (default: sqlite)
engine: sqlite
# Path to the database schema
schema_path: "./database/migrations"
# Whether prepared DB is enabled
prepared_db: false
# Path to prepared database file
prepared_db_file_path: "./data/blockheaders.csv.gz"
#sqlite engine configuration
sqlite:
file_path: "./data/blockheaders.db"
#postgres engine configuration, required when engine=postgres
postgres:
host: "localhost"
port: 5432
user: "user"
password: "password"
db_name: "bhs"
ssl_mode: "disable" #[disable|enable]
# P2P Configuration
p2p:
# Duration to ban misbehaving peers
ban_duration: 24h
# Disable built-in checkpoints
disable_checkpoints: false
# Minimum number of blocks for confirmation
blocks_for_confirmation: 10
# Default connection timeout
default_connect_timeout: 30s
# Chain network type [mainnet|testnet|regtest|simnet]
chain_net_type: mainnet
# Use experimental new refactored p2p communication
experimental: false
# Merkle Root Configuration
merkleroot:
# Maximum block height excess
max_block_height_excess: 6
# Webhook Configuration
webhook:
# Maximum number of tries for webhook
max_tries: 10
# Websocket Configuration
websocket:
# Maximum number of history items
history_max: 300
# History time-to-live
history_ttl: 10
# HTTP Configuration
http:
# Read timeout
read_timeout: 10
# Write timeout
write_timeout: 10
# HTTP server port
port: 8080
# URL prefix for API
use_auth: true
# Authentication token
auth_token: "mQZQ6WmxURxWz5ch"
# Flag for enabling additional endpoits for profiling with use of pprof
debug_profiling: true
# Logging Configuration
logging:
# Logging level
level: debug
# Logging format: console/json
format: console
# Instance name shown as parameter in logs
instance_name: block-header-service
# Flag for enabling origin parameter in logs
origin: false
# Prometheus metrics configuration
metrics:
enabled: false