47 lines
2.2 KiB
TOML
47 lines
2.2 KiB
TOML
|
|
# Garage v1.1.0 — WAL archive for CloudNativePG, on the Linode hub.
|
||
|
|
#
|
||
|
|
# Installed to /etc/garage/garage.toml (root:root 0644) by install.sh.
|
||
|
|
#
|
||
|
|
# This is a SECOND, independent Garage node — not a cluster peer of the Pi's
|
||
|
|
# node `d053db4dfc97bf78`. It exists because a WAL archive must live off-site:
|
||
|
|
# the Pi and the CNPG primary (siriussec) share a building, power domain and
|
||
|
|
# internet uplink, so archiving WALs there is a second copy of the same
|
||
|
|
# failure. Different node_key, different metadata dir, `replication_factor = 1`,
|
||
|
|
# nothing shared with the Pi's store.
|
||
|
|
#
|
||
|
|
# Listeners are bound to explicit addresses here AND the ports are guarded by
|
||
|
|
# host/wal-archive-firewall.nft before Docker-style DNAT could ever matter.
|
||
|
|
# `10.10.0.5` is the Linode worker's WireGuard-mesh InternalIP (dummy-k8s) —
|
||
|
|
# the only address any cluster pod can reach this on. eth0 (50.116.38.217) is
|
||
|
|
# not bound at all, so an off-mesh scan sees a filtered port, not a listener.
|
||
|
|
#
|
||
|
|
# rpc_secret is NOT in this file: GARAGE_RPC_SECRET comes from
|
||
|
|
# /etc/garage/garage.env (0600, out of git), same as the Pi's node.
|
||
|
|
|
||
|
|
metadata_dir = "/data/meta"
|
||
|
|
data_dir = "/data/data"
|
||
|
|
db_engine = "sqlite"
|
||
|
|
replication_factor = 1
|
||
|
|
|
||
|
|
# Single node: nothing outside the container speaks RPC. Garage still needs the
|
||
|
|
# listener for its own CLI-over-loopback calls (`garage status`, `garage key`).
|
||
|
|
rpc_bind_addr = "127.0.0.1:3901"
|
||
|
|
rpc_public_addr = "127.0.0.1:3901"
|
||
|
|
|
||
|
|
[s3_api]
|
||
|
|
s3_region = "garage"
|
||
|
|
# WireGuard address only. An empty/i.e. 0.0.0.0 bind here would put barman's
|
||
|
|
# archive on the Linode's public interface.
|
||
|
|
api_bind_addr = "10.10.0.5:3900"
|
||
|
|
|
||
|
|
# Admin API + Prometheus metrics, mesh-only. No metrics_token: the port does not
|
||
|
|
# leave the WireGuard mesh. Add one here (and a bearer token in the scrape
|
||
|
|
# config) if 3903 is ever exposed beyond it. Not scraped today — the archive's
|
||
|
|
# growth is asserted from the filesystem in the backup README instead.
|
||
|
|
[admin]
|
||
|
|
api_bind_addr = "10.10.0.5:3903"
|
||
|
|
|
||
|
|
# node_key is generated on first start and lives in metadata_dir (/data/meta).
|
||
|
|
# It is part of /root/garage-backup for the Pi's node; this node's meta/ is
|
||
|
|
# covered by the cluster-backup mirror on the same host. Restore meta/ before
|
||
|
|
# data/ or the layout no longer names this node and every bucket is orphaned.
|