# ========================================== # Garage Storage Engine Configuration # ========================================== # Core storage directories metadata_dir = "/var/lib/garage/meta" data_dir = "/var/lib/garage/data" # LMDB is recommended for production performance db_engine = "lmdb" metadata_auto_snapshot_interval = "6h" # Multi-node ready setup: # Set to 1 for initial single node. Update to 3 when adding Node 2 and Node 3 later. replication_factor = 1 compression_level = 2 # ========================================== # Network & Node Identity Configuration # ========================================== # Bind to all interfaces for host network mode rpc_bind_addr = "[::]:3901" # IMPORTANT: Set to Node 1's publicly reachable IP or DNS name (e.g., 192.168.1.10:3901 or 203.0.113.10:3901) rpc_public_addr = "192.168.88.106:3901" # Generate with: openssl rand -hex 32 (MUST BE IDENTICAL ON ALL NODES IN CLUSTER) rpc_secret = "3cf7a4d1da5d7b024a06db7fe6d73e2c160c6de640fda69b0b964d98678155a7" # ========================================== # Service APIs # ========================================== [s3_api] s3_region = "garage" api_bind_addr = "0.0.0.0:3900" root_domain = ".s3-api.yiem.cc" [s3_web] bind_addr = "0.0.0.0:3902" root_domain = ".s3-web.yiem.cc" index = "index.html" [k2v_api] api_bind_addr = "0.0.0.0:3904" [admin] api_bind_addr = "0.0.0.0:3903" # Generate with: openssl rand -hex 16 admin_token = "fd92f47a7c1ce8b072b06bb19dbc3fef" metrics_token = "27d29618cc436a23ec7d842392fdf74b"