forked from Alethio/memento
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-sample.yml
88 lines (67 loc) · 2.06 KB
/
config-sample.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
81
82
83
84
85
86
87
# api-related fields
api:
# The port on which the API will be exposed (default:3001)
port: 3001
# Enable/disable development CORS
dev-cors: true
# Allowed hosts for HTTP API development CORS
dev-cors-host: "*"
# Dashboard-related fields
dashboard:
# The port on which the Dashboard will be exposed (default:3000)
# WARNING: it must not be the same as api.port!
port: 3000
config-management:
enabled: true
# database fields
db:
# Database host
host: "memento-postgres"
# Database port
port: 5432
# Database sslmode
sslmode: "disable"
# Database name
dbname: "memento"
# Database user (also allowed via PG_USER env var)
user: "memento"
# ethereum-related fields
eth:
client:
# HTTP endpoint of a web3-compatible node (mandatory)
http: "http://localhost:8545"
# Websockets endpoint of JSON-RPC enabled node (optional)
# if this is present, the task manager will use a newHeads subscription to watch for new blocks
# if not present, the task manager will use polling to get the highest block
ws: "ws://localhost:8546"
# The interval at which the task manager will poll the node for best block (default:"15s")
# optional, only used if `ws` url is not specified
poll-interval: "15s"
# feature flags
feature:
# Backfilling
backfill:
# Enable/disable the backfilling feature
enabled: false
# Lag feature
lag:
# Enable/disable the lag feature
enabled: true
# The amount of blocks to lag behind the tip of the chain if the lag feature is enabled
value: 10
# Automatic migrations
automigrate:
# Enable/disable the automatic migrations
enabled: true
# Uncles scraping
uncles:
# Enable/disabled the uncles scraping
enabled: true
# Control what to be logged using format "module=level,module=level"; `*` means all other modules
logging: "*=info"
# redis-related fields
redis:
# URL of redis server (default:"localhost:6379")
server: "memento-redis:6379"
# The name of the redis list the scraper will use for task management (default: "todo")
list: "todo"