From 2ef0217a0a472c8633d90ef972b2f709037c0a3e Mon Sep 17 00:00:00 2001 From: Tyler <109685178+tlongwell-block@users.noreply.github.com> Date: Tue, 14 Jul 2026 14:34:09 -0400 Subject: [PATCH] chore(relay): make web UI opt-in (#1859) Signed-off-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co> Co-authored-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co> --- Dockerfile | 5 +++-- TESTING.md | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6043b2273..4d9a01ae8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,9 +92,10 @@ COPY --from=builder /build/target/release/buzz-admin /usr/local/bin/buzz-admi COPY --from=builder /build/target/release/buzz-pair-relay /usr/local/bin/buzz-pair-relay COPY --from=web-builder /build/web/dist /srv/buzz/web -ENV BUZZ_WEB_DIR=/srv/buzz/web +# The web UI is bundled but disabled by default. Set +# BUZZ_WEB_DIR=/srv/buzz/web to opt in. -# 3000: app (WS + REST + web UI) · 8080: /_liveness, /_readiness · 9102: /metrics +# 3000: app (WS + REST) · 8080: /_liveness, /_readiness · 9102: /metrics EXPOSE 3000 8080 9102 USER buzz:buzz diff --git a/TESTING.md b/TESTING.md index a1ddb35ec..a40bb5e30 100644 --- a/TESTING.md +++ b/TESTING.md @@ -272,6 +272,7 @@ out of the box with `just setup` or `just relay`. Common overrides: | `BUZZ_AUTO_MIGRATE` | `false` | Opt in with `true`/`1`/`yes`/`on` to run embedded SQLx migrations on relay startup | | `RELAY_OWNER_PUBKEY` | unset | Bootstrapped as `owner` in `relay_members` at first start | | `BUZZ_ALLOW_NIP_OA_AUTH` | `false` | Enable NIP-OA owner attestation for membership | +| `BUZZ_WEB_DIR` | unset | Set to the bundled `/srv/buzz/web` in the container to opt in to the browser web UI | CLI-side, only two matter for testing: