Configuration
Configuration sources
Settings can be specified in three ways (in order of precedence):
- Command line arguments.
- Environment variables starting with
DKRON_
dkron.yml
config file
caution
Dkron sends anonymous usage data to a server with the purpose of elaborating usage statistics, if you want to disable statistics collection, you can disable it in the dkron config file or in the command line using --disable-usage-stats
parameter
Config file location
Config file will be loaded from the following paths:
/etc/dkron
$HOME/.dkron
./config
Config file example
# Dkron example configuration file
# server: false
# bootstrap-expect: 3
# data-dir: dkron.data
# log-level: debug
# tags:
# dc: east
# encrypt: a-valid-key-generated-with-dkron-keygen
# retry-join:
# - 10.0.0.1
# - 10.0.0.2
# - 10.0.0.3
# raft-multiplier: 1
# webhook-url: https://hooks.slack.com/services/XXXXXX/XXXXXXX/XXXXXXXXXXXXXXXXXXXX
# webhook-payload: "payload={\"text\": \"{{.Report}}\", \"channel\": \"#foo\"}"
# webhook-headers: Content-Type:application/x-www-form-urlencoded
# mail-host: email-smtp.eu-west-1.amazonaws.com
# mail-port: 25
# mail-username": mailuser
# mail-password": mailpassword
# mail-from": [email protected]
# mail-subject_prefix: [Dkron]
SEE ALSO
- dkron agent - Start a dkron agent
- dkron doc - Generate Markdown documentation for the Dkron CLI.
- dkron keygen - Generates a new encryption key
- dkron version - Show version