mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
config.example.yml: Add some documentation
This commit is contained in:
parent
213398ece8
commit
b8a021dca8
1 changed files with 37 additions and 5 deletions
|
|
@ -1,27 +1,59 @@
|
||||||
|
|
||||||
|
# Reader name
|
||||||
name: "ship-reader-1"
|
name: "ship-reader-1"
|
||||||
|
|
||||||
|
# Endpoint to nodeos api
|
||||||
api: "http://127.0.0.1:8080"
|
api: "http://127.0.0.1:8080"
|
||||||
message_codec: "json"
|
message_codec: "json"
|
||||||
|
|
||||||
|
# Logging settings
|
||||||
log:
|
log:
|
||||||
|
# Filename to use.
|
||||||
filename: thalos.log
|
filename: thalos.log
|
||||||
|
# Directory to store the logfiles in.
|
||||||
directory: logs
|
directory: logs
|
||||||
|
# Format to rename log files when rotating
|
||||||
time_format: 2006-01-02_150405
|
time_format: 2006-01-02_150405
|
||||||
|
|
||||||
|
# Log rotation, logfile is rotated when any of these
|
||||||
|
# conditions are met. set to 0 or remove to disable.
|
||||||
|
|
||||||
|
# Rotate when the file reaches this size.
|
||||||
max_filesize: 200mb
|
max_filesize: 200mb
|
||||||
|
# Rotate when the file is this old.
|
||||||
max_time: 24h
|
max_time: 24h
|
||||||
|
|
||||||
|
# SHIP settings
|
||||||
ship:
|
ship:
|
||||||
url: "ws://127.0.0.1:8089"
|
|
||||||
irreversible_only: false
|
|
||||||
max_messages_in_flight: 10
|
|
||||||
start_block_num: 4294967295
|
|
||||||
end_block_num: 4294967295
|
|
||||||
|
|
||||||
|
# Url to ship api.
|
||||||
|
url: "ws://127.0.0.1:8089"
|
||||||
|
|
||||||
|
# Fetch irreversible blocks only
|
||||||
|
# irreversible_only: true
|
||||||
|
|
||||||
|
# Request ship to start sending blocks from this block.
|
||||||
|
# If not set, the head block reported by the nodeos api is used.
|
||||||
|
#start_block_num: 1000
|
||||||
|
|
||||||
|
# Request ship to stop sending blocks when reaching this block.
|
||||||
|
#end_block_num: 2000
|
||||||
|
|
||||||
|
# Telegram notifications
|
||||||
telegram:
|
telegram:
|
||||||
id: "110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw"
|
id: "110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw"
|
||||||
channel: -123456789
|
channel: -123456789
|
||||||
|
|
||||||
|
# Redis settings
|
||||||
redis:
|
redis:
|
||||||
|
# Address (and port) to redis server
|
||||||
addr: "localhost:6379"
|
addr: "localhost:6379"
|
||||||
|
|
||||||
|
# Password to use when authenticating
|
||||||
pasword: ""
|
pasword: ""
|
||||||
|
|
||||||
|
# database index
|
||||||
db: 0
|
db: 0
|
||||||
|
|
||||||
|
# Key prefix.
|
||||||
prefix: "ship"
|
prefix: "ship"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue