aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-07-23 14:06:36 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-07-23 14:06:36 +0200
commit233556e9ef8982f6818e250fe7471308986f16f2 (patch)
tree0ed40ff0a5ea0d7ead7f9b3fe31a0870d9708c39
parent132ad670a1df0a3b083e35ba823dad5ebaac33a9 (diff)
downloadnixcfg-233556e9ef8982f6818e250fe7471308986f16f2.tar.gz
nixcfg-233556e9ef8982f6818e250fe7471308986f16f2.zip
Simpler IPv6 config for Garage
-rw-r--r--cluster/prod/app/garage/config/garage.toml6
1 files changed, 2 insertions, 4 deletions
diff --git a/cluster/prod/app/garage/config/garage.toml b/cluster/prod/app/garage/config/garage.toml
index 5b10707..36daa5d 100644
--- a/cluster/prod/app/garage/config/garage.toml
+++ b/cluster/prod/app/garage/config/garage.toml
@@ -6,10 +6,8 @@ db_engine = "lmdb"
replication_mode = "3"
-{{ with $a := env "attr.unique.hostname" | printf "diplonat/autodiscovery/ipv6/%s" | key | parseJSON }}
-rpc_bind_addr = "[{{ $a.address }}]:3901"
-rpc_public_addr = "[{{ $a.address }}]:3901"
-{{ end }}
+rpc_bind_addr = "[{{ env "meta.public_ipv6" }}]:3901"
+rpc_public_addr = "[{{ env "meta.public_ipv6" }}]:3901"
rpc_secret = "{{ key "secrets/garage/rpc_secret" | trimSpace }}"
[consul_discovery]