From 49725d6b391950704c93e4d88daa02999b44e4dc Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 12 May 2023 15:37:53 +0200 Subject: [PATCH] debian: install custom config tailored for debian. --- debian/config.yml | 56 +++++++++++++++++++++++++++++++++++++++++++++++ debian/install | 1 + 2 files changed, 57 insertions(+) create mode 100644 debian/config.yml create mode 100644 debian/install diff --git a/debian/config.yml b/debian/config.yml new file mode 100644 index 0000000..2f9c62a --- /dev/null +++ b/debian/config.yml @@ -0,0 +1,56 @@ +name: thalos + +# Endpoint to nodeos api +api: "http://127.0.0.1:8080" + +# Logging settings +log: + # Filename to use. + filename: thalos.log + # Directory to store the logfiles in. + directory: /var/log/thalos + # Format to rename log files when rotating + 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 + # Rotate when the file is this old. + max_time: 24h + +# SHIP settings +ship: + + # 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: +# id: "110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw" +# channel: -123456789 + +# Redis settings +redis: + # Address (and port) to redis server + addr: "localhost:6379" + + # Password to use when authenticating + pasword: "" + + # database index + db: 0 + + # Key prefix. + prefix: "ship" diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..90e4ff6 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +debian/config.yml /etc/thalos \ No newline at end of file