42 lines
1.9 KiB
TOML
42 lines
1.9 KiB
TOML
|
|
# Garage v1.1.0 configuration — single node, rpi (10.10.0.1 on the WG mesh).
|
||
|
|
#
|
||
|
|
# Installed to /etc/garage/garage.toml (root:root 0644).
|
||
|
|
#
|
||
|
|
# Addresses here are INSIDE the container network namespace. What the host
|
||
|
|
# actually exposes is decided by docker-compose.yml (explicit 10.10.0.1 / 127.0.0.1
|
||
|
|
# publishes), and enforced a second time by host/garage-firewall.nft. A 0.0.0.0
|
||
|
|
# listener in this file is therefore not a public exposure.
|
||
|
|
#
|
||
|
|
# rpc_secret is NOT in this file: it is supplied as GARAGE_RPC_SECRET from
|
||
|
|
# /etc/garage/garage.env (0600, out of git). Verified on Garage v1.1.0 —
|
||
|
|
# the env var overrides the missing config key and the node starts normally.
|
||
|
|
|
||
|
|
metadata_dir = "/data/meta"
|
||
|
|
data_dir = "/data/data"
|
||
|
|
db_engine = "sqlite"
|
||
|
|
replication_factor = 1
|
||
|
|
|
||
|
|
# RPC. Single node: nothing connects from outside the container, so the host
|
||
|
|
# publishes nothing for 3901. Garage still needs the listener for its own
|
||
|
|
# CLI-over-loopback calls (`garage status`, `garage key ...`).
|
||
|
|
rpc_bind_addr = "0.0.0.0:3901"
|
||
|
|
rpc_public_addr = "127.0.0.1:3901"
|
||
|
|
|
||
|
|
[s3_api]
|
||
|
|
s3_region = "garage"
|
||
|
|
api_bind_addr = "0.0.0.0:3900"
|
||
|
|
|
||
|
|
# Admin API + Prometheus metrics. Published on 10.10.0.1:3903 only.
|
||
|
|
# No metrics_token: the listener is WireGuard-only, and Prometheus runs in the
|
||
|
|
# cluster on the far side of the mesh. Add `metrics_token` here (and a matching
|
||
|
|
# bearer token in the ServiceMonitor) if 3903 ever leaves the mesh.
|
||
|
|
[admin]
|
||
|
|
api_bind_addr = "0.0.0.0:3903"
|
||
|
|
|
||
|
|
# [s3_web] REMOVED 2026-11-19 (port 3902, static website mode).
|
||
|
|
# Nothing consumed it: a pod's 127.0.0.1 is its own netns, so 127.0.0.1:3902 was
|
||
|
|
# unreachable from the cluster, and public website serving is Cilium Gateway on
|
||
|
|
# siriussec (10.10.0.2:8080). The site now pulls media from the private bucket
|
||
|
|
# with an initContainer (`aws s3 sync` -> /media), so the web listener had no
|
||
|
|
# remaining consumer. Re-adding it means publishing a port and re-deciding
|
||
|
|
# bucket publicity — do not do that casually.
|