aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-23 19:54:20 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-23 19:54:20 +0200
commit2d9adf82d04261f420af4cc5482e442297741a5d (patch)
tree379a501c67215bb58636f6e47ad0bb15bc1ce459 /app
parent6639908fbdb9d5f3769275f101e3ece83b120af3 (diff)
downloadnixcfg-2d9adf82d04261f420af4cc5482e442297741a5d.tar.gz
nixcfg-2d9adf82d04261f420af4cc5482e442297741a5d.zip
Add admin token to garage staging
Diffstat (limited to 'app')
-rw-r--r--app/garage-staging/config/garage.toml1
-rw-r--r--app/garage-staging/deploy/garage.hcl2
2 files changed, 2 insertions, 1 deletions
diff --git a/app/garage-staging/config/garage.toml b/app/garage-staging/config/garage.toml
index d24acad..2008827 100644
--- a/app/garage-staging/config/garage.toml
+++ b/app/garage-staging/config/garage.toml
@@ -27,4 +27,5 @@ index = "index.html"
[admin]
api_bind_addr = "0.0.0.0:3909"
+admin_token = "{{ key "secrets/garage-staging/admin_token" | trimSpace }}"
trace_sink = "http://{{ env "attr.unique.network.ip-address" }}:4317"
diff --git a/app/garage-staging/deploy/garage.hcl b/app/garage-staging/deploy/garage.hcl
index 916eae2..e90e3ce 100644
--- a/app/garage-staging/deploy/garage.hcl
+++ b/app/garage-staging/deploy/garage.hcl
@@ -29,7 +29,7 @@ job "garage-staging" {
driver = "docker"
config {
- image = "dxflrs/amd64_garage:v0.7.1-k2v"
+ image = "dxflrs/amd64_garage:v0.7.1-admin-k2v-2"
command = "/garage"
args = [ "server" ]
network_mode = "host"