mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
81 lines
1.6 KiB
TOML
81 lines
1.6 KiB
TOML
# Predastore S3-compatible storage configuration file in TOML format.
|
|
# MULTI NODE used for testing
|
|
version = "1.0"
|
|
region = "ap-southeast-2"
|
|
|
|
# Optionally configure port and host, or specify via daemon CLI options
|
|
host = "0.0.0.0"
|
|
port = 8443
|
|
|
|
# Enable verbose debugging
|
|
debug = false
|
|
|
|
# Optionally configure base-path if full directory path not defined for "fs" buckets
|
|
# base_path = "/home/predastore/data/"
|
|
|
|
# Specify reed solomon encoding
|
|
[rs]
|
|
data = 2
|
|
parity = 1
|
|
|
|
[[db]]
|
|
id = 1
|
|
host = "127.0.0.1"
|
|
port = 6660
|
|
#raft_port = 7660 # Optional: Raft consensus port (default: port + 1000)
|
|
#advertise_host = "" # Optional: Address to advertise to other Raft nodes
|
|
path = "distributed/db/node-1/"
|
|
access_key_id = "X"
|
|
secret_access_key = "X"
|
|
leader = true # Bootstrap leader hint
|
|
|
|
[[db]]
|
|
id = 2
|
|
host = "127.0.0.1"
|
|
port = 6661
|
|
path = "distributed/db/node-2/"
|
|
access_key_id = "X"
|
|
secret_access_key = "X"
|
|
|
|
[[db]]
|
|
id = 3
|
|
host = "127.0.0.1"
|
|
port = 6662
|
|
path = "distributed/db/node-3/"
|
|
access_key_id = "X"
|
|
secret_access_key = "X"
|
|
|
|
[[nodes]]
|
|
id = 1
|
|
host = "0.0.0.0"
|
|
port = 9991
|
|
path = "distributed/nodes/node-1/"
|
|
|
|
[[nodes]]
|
|
id = 2
|
|
host = "0.0.0.0"
|
|
port = 9992
|
|
path = "distributed/nodes/node-2/"
|
|
|
|
[[nodes]]
|
|
id = 3
|
|
host = "0.0.0.0"
|
|
port = 9993
|
|
path = "distributed/nodes/node-3/"
|
|
|
|
[[buckets]]
|
|
name = "predastore"
|
|
region = "ap-southeast-2"
|
|
type = "distributed"
|
|
public = false
|
|
encryption = ""
|
|
|
|
[[auth]]
|
|
access_key_id = "X"
|
|
secret_access_key = "X"
|
|
policy = [
|
|
{ bucket = "predastore", actions = ["s3:ListBucket", "s3:GetObject", "s3:PutObject", "s3:DeleteObject", "s3:ListAllMyBuckets"] },
|
|
]
|
|
|
|
|