sessions/dev/config.example.toml
agent ca66db3aeb Add sessions-ctl keygen to create prod's key on the dev box
keygen generates an ed25519 pair in RAM, writes the public half to
config.toml and authorized_keys (replacing the previous sessions-manager
line) and prints the web app's environment - dev host, port, user, pinned
host key and the private key as one base64 line - then deletes the private
key, so the pasted copy is the only one. Refuses to replace an existing key
without --rotate. Local only, never reachable over SSH.

Also make load_config() read CONFIG_PATH at call time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KKYfRST9cTJYae3f7Jf3ac
2026-09-30 14:39:56 +00:00

30 lines
1.3 KiB
TOML

# ~/.config/sessions/config.toml — read by sessions-ctl. chmod 600.
# install.sh copies this file there once and never overwrites it.
# Where session checkouts live (one directory per session).
workspace_root = "~/sessions"
# How many sessions may run at once. Each claude process takes a few hundred
# MB; the unit caps each session at 1.6 GB (MemoryMax). The box has ~4 GB.
max_running = 2
# Remote Control names look like "<prefix>-<session name>" in the Claude app.
remote_control_prefix = "dev-box"
# Repos a session may be created from. The key is what the web app shows and
# sends; the URL never crosses the SSH link. Being on this list is what makes
# a checkout trusted by Claude Code, so only list repos you trust.
[repos]
sessions = "ssh://git@git.reudy.net:14922/reudy-net/sessions.git"
[ssh_access]
# prod's key may only connect from the address(es) this name resolves to.
# Re-resolved hourly by sessions-access-refresh.timer.
allow_from_host = "reudy.net"
# The public half of the key the web app container uses. Written by
# `sessions-ctl keygen`; you don't need to edit it by hand.
# public_key = "ssh-ed25519 AAAA… sessions-web"
# Printed by keygen as SESSIONS_DEV_HOST / SESSIONS_DEV_PORT. By default it's
# the address this box uses to reach the internet, and 14922.
# advertise_host = "2.28.100.223"
# port = 14922