83 lines
2.4 KiB
TOML
83 lines
2.4 KiB
TOML
system = "/var/lib/slackerbot/agent-system"
|
|
machines_dir = "/var/lib/machines"
|
|
state_dir = "/var/lib/slackerbot"
|
|
agent_cwd = "/root"
|
|
|
|
idle_timeout = "6h"
|
|
max_idle_timeout = "0s" # 0s = no cap. Go durations only, e.g. "168h" for a week.
|
|
allow_indefinite = true
|
|
boot_timeout = "2m"
|
|
|
|
# "{machine}" becomes the container name, e.g. c-c07abc123.
|
|
ro_binds = []
|
|
rw_binds = []
|
|
|
|
[slack]
|
|
app_token = "" # or SLACK_APP_TOKEN
|
|
bot_token = "" # or SLACK_BOT_TOKEN
|
|
|
|
[agent_env]
|
|
GOOSE_PROVIDER = "anthropic"
|
|
GOOSE_MODEL = "claude-sonnet-5-5"
|
|
ANTHROPIC_API_KEY = "$ANTHROPIC_API_KEY"
|
|
|
|
[container]
|
|
memory_mb = 2048
|
|
cpus = 1.0
|
|
|
|
[max_container]
|
|
memory_mb = 8192
|
|
cpus = 4.0
|
|
|
|
[host_reserve]
|
|
memory_mb = 2048
|
|
cpus = 1.0
|
|
|
|
# Home folder (/root) per container: min is guaranteed, max is the cap.
|
|
# limit is the biggest max anyone can set from chat.
|
|
[storage]
|
|
min = "5G"
|
|
max = "10G"
|
|
limit = "50G"
|
|
|
|
# Folders on btrfs drives. reserve is kept free for everything else on that drive.
|
|
[[drives]]
|
|
path = "/mnt/disk1/slackerbot"
|
|
reserve = "20G"
|
|
|
|
[[drives]]
|
|
path = "/mnt/disk2/slackerbot"
|
|
reserve = "20G"
|
|
|
|
# Master: set listen to accept slaves. Slaves: set master (and run with -mode slave).
|
|
# The master logs its certificate fingerprint on start; put it in master_fingerprint
|
|
# on slaves, or leave it empty to trust the first certificate seen.
|
|
[cluster]
|
|
name = "" # defaults to the hostname
|
|
secret = "$CLUSTER_SECRET" # same on every node, 16+ characters
|
|
listen = ":7946"
|
|
master = "" # e.g. "wss://master.example:7946"
|
|
master_fingerprint = ""
|
|
|
|
# Starting permissions, copied into the master's state on first run. After that,
|
|
# change them in Slack (grant, revoke, dm, managers); edits here are ignored.
|
|
# Permissions: scale, storage, move, keep, "all" (those four), and manage (edit this channel's list).
|
|
# Use Slack user IDs (profile → ⋮ → Copy member ID) and channel IDs.
|
|
# A channel with its own list uses only that list; every other channel uses default.
|
|
[permissions]
|
|
managers = ["U0ADMIN"] # can change every channel's list, the default list, DM flags and managers
|
|
|
|
[permissions.default]
|
|
U0ADMIN = ["all"]
|
|
|
|
[permissions.channels.C07ABC123]
|
|
U0111 = ["move"]
|
|
U0222 = ["all", "manage"]
|
|
|
|
# What people may change on their own DM container. Unset means allowed.
|
|
[permissions.dm]
|
|
scale = true
|
|
storage = false
|
|
move = true
|
|
keep = true
|