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
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