aboutsummaryrefslogtreecommitdiff
path: root/cluster/staging/app/garage/config/garage.toml
blob: 26e03610788400ef6d84652e4a0bea4784debfb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
block_size = 1048576

metadata_dir = "/meta"
data_dir = "/data"
db_engine = "lmdb"

replication_mode = "3"

{{ with $a := env "attr.unique.hostname" | printf "diplonat/autodiscovery/ipv6/%s" | key | parseJSON }}
rpc_bind_addr = "[{{ $a.address }}]:3991"
rpc_public_addr = "[{{ $a.address }}]:3991"
{{ end }}
rpc_secret = "{{ key "secrets/garage-staging/rpc_secret" | trimSpace }}"

bootstrap_peers = []

[consul_discovery]
consul_http_addr = "https://consul.service.staging.consul:8501"
service_name = "garage-staging-discovery"
ca_cert = "/etc/garage/consul-ca.crt"
client_cert = "/etc/garage/consul-client.crt"
client_key = "/etc/garage/consul-client.key"
tls_skip_verify = true

[s3_api]
s3_region = "garage-staging"
api_bind_addr = "0.0.0.0:3990"

[k2v_api]
api_bind_addr = "0.0.0.0:3993"

[s3_web]
bind_addr = "0.0.0.0:3992"
root_domain = ".web.staging.deuxfleurs.org"
index = "index.html"

[admin]
api_bind_addr = "0.0.0.0:3909"
admin_token = "{{ key "secrets/garage-staging/admin_token" | trimSpace }}"
metrics_token = "{{ key "secrets/garage-staging/metrics_token" | trimSpace }}"
trace_sink = "http://jaeger-otlp-grpc.service.staging.consul:4317"