diff --git a/abra.sh b/abra.sh index 2287127..c028708 100644 --- a/abra.sh +++ b/abra.sh @@ -1 +1 @@ -export GARAGE_CONF_VERSION=v5 +export GARAGE_CONF_VERSION=v7 \ No newline at end of file diff --git a/compose.yml b/compose.yml index 51a973f..3d7a3b6 100644 --- a/compose.yml +++ b/compose.yml @@ -9,7 +9,8 @@ services: - source: garage_conf target: /etc/garage.toml secrets: - - rpc_secret + - source: rpc_secret + mode: 0600 networks: - proxy - internal diff --git a/garage.toml.tmpl b/garage.toml.tmpl index b6b5d4d..d54cc2f 100644 --- a/garage.toml.tmpl +++ b/garage.toml.tmpl @@ -15,7 +15,7 @@ compression_level = 2 rpc_bind_addr = "[::]:3901" rpc_public_addr = "{{ env "DOMAIN" }}:3901" rpc_addr = "[::]:3901" -rpc_secret = "{{ secret "rpc_secret" }}" +rpc_secret_file = "/run/secrets/rpc_secret" {{ if ne (env "BOOTSTRAP_ID") "" }} bootstrap_peers = [