nix-cluster/apps/garage/garage.toml
2025-11-22 22:12:01 +01:00

35 lines
829 B
TOML

metadata_dir = "/meta"
data_dir = "/data"
db_engine = "sqlite"
replication_factor = 3
metadata_auto_snapshot_interval = "24h"
{{ $wg_addr := print "config/wg/by_hostname/" (env "attr.unique.hostname") }}
rpc_bind_addr = "[::]:3901"
rpc_public_addr = "{{ key $wg_addr }}:3901"
rpc_secret = "{{ key "secrets/garage/rpc_secret" | trimSpace }}"
allow_punycode = true
[consul_discovery]
consul_http_addr = "http://127.0.0.1:8500"
service_name = "garage-prod-discovery"
[s3_api]
s3_region = "garage"
api_bind_addr = "[::]:3900"
root_domain = ".garage.chokbar.bzh"
[k2v_api]
api_bind_addr = "[::]:3904"
[s3_web]
bind_addr = "[::]:3902"
root_domain = ""
[admin]
api_bind_addr = "[::]:3903"
metrics_token = "{{ key "secrets/garage/metrics_token" | trimSpace }}"
admin_token = "{{ key "secrets/garage/admin_token" | trimSpace }}"