From 5ae4d58c7fb168d23fc43319c8ab7086d2cbc9c7 Mon Sep 17 00:00:00 2001 From: ammar Date: Tue, 1 Sep 2026 18:04:19 -0700 Subject: [PATCH] add route to admin endpoint --- abra.sh | 2 +- compose.yml | 4 ++++ garage.toml.tmpl | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/abra.sh b/abra.sh index c028708..607de32 100644 --- a/abra.sh +++ b/abra.sh @@ -1 +1 @@ -export GARAGE_CONF_VERSION=v7 \ No newline at end of file +export GARAGE_CONF_VERSION=v8 diff --git a/compose.yml b/compose.yml index 6880f27..28a7223 100644 --- a/compose.yml +++ b/compose.yml @@ -24,6 +24,10 @@ services: - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.service=${STACK_NAME}" + - "traefik.http.services.${STACK_NAME}-admin.loadbalancer.server.port=3903" + - "traefik.http.routers.${STACK_NAME}-admin.rule=Host(`${DOMAIN}`)" + - "traefik.http.routers.${STACK_NAME}-admin.entrypoints=garage-admin" + - "traefik.http.routers.${STACK_NAME}-admin.service=${STACK_NAME}-admin" - "traefik.tcp.routers.${STACK_NAME}-rpc.rule=HostSNI(`*`)" - "traefik.tcp.routers.${STACK_NAME}-rpc.entrypoints=garage-rpc" - "traefik.tcp.services.${STACK_NAME}-rpc.loadbalancer.server.port=3901" diff --git a/garage.toml.tmpl b/garage.toml.tmpl index caeb375..4861a7e 100644 --- a/garage.toml.tmpl +++ b/garage.toml.tmpl @@ -30,7 +30,7 @@ root_domain = ".s3.garage" {{ if eq (env "MONITORING_ENABLED") "true" }} [admin] -api_bind_addr = "[::]:3903" +api_bind_addr = "0.0.0.0:3903" admin_token_file = "/run/secrets/admin_token" metrics_require_token = true metrics_token_file = "/run/secrets/metrics_token" -- 2.54.0