crates/monetize-box-watcher/ops/watcher.example.toml
# monetize-box-watcher (BOX-START part 3). ~/.config/monetize-box-watcher/watcher.toml
# apply = false: DRY-RUN, it logs "DRY-RUN <box>: ... would be started" and starts nothing.
# apply = true: a stopped ONE box is started (POST /1.3/server/<uuid>/start). Nothing else
# is ever started, stopped, created or deleted; the ONE box starts its estates itself.
apply = false
api_base = "https://api.upcloud.com"
# Each account's token is read from an existing secret file (KEY=value), never printed.
[[account]]
name = "monetize"
secrets_file = "/home/rickard/monetize_secrets"
token_key = "UPCLOUD_TOKEN"
[[account]]
name = "test2"
secrets_file = "/home/rickard/test2_secrets"
token_key = "UPCLOUD_TOKEN"
# A ONE box by its uuid, or by the address its DNS name resolves to (the DNS lives at
# one.com, outside UpCloud, so it answers while the box is down). `account` narrows the look.
[[box]]
name = "monetize.ignalina.dk"
address = "monetize.ignalina.dk"
[[box]]
name = "test2.monetize.ignalina.dk"
address = "95.111.204.243"
# SEC-S1: a ONE box its operator stopped ON PURPOSE is never started. Hold it with a marker
# file named after the box in hold_dir; its first line says why. Remove the file to release.
# echo "rickard: moving its data disk" > ~/.config/monetize-box-watcher/hold/monetize.ignalina.dk
# hold_dir = "/home/rickard/.config/monetize-box-watcher/hold" # the default