Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion deploy/compose/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ BUZZ_DOMAIN=buzz.example.com
RELAY_URL=wss://buzz.example.com
BUZZ_MEDIA_BASE_URL=https://buzz.example.com/media
BUZZ_MEDIA_SERVER_DOMAIN=buzz.example.com
BUZZ_CORS_ORIGINS=https://buzz.example.com
# CORS allowlist for the relay HTTP API, comma-separated exact origins. Replace the domain,
# but keep the tauri entries — the desktop app webview (tauri://localhost on macOS/Linux,
# http://tauri.localhost on Windows) cannot reach the relay HTTP API without them.
BUZZ_CORS_ORIGINS=https://buzz.example.com,tauri://localhost,http://tauri.localhost

# Production defaults. Closed relay mode requires RELAY_OWNER_PUBKEY and a stable relay key.
BUZZ_REQUIRE_AUTH_TOKEN=true
Expand Down
5 changes: 5 additions & 0 deletions deploy/compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ keypair.
- Requires Docker Compose v2.24.4 or newer; the TLS override uses Compose's
`!reset` tag to remove the direct relay port when Caddy terminates HTTPS.
- Default `BUZZ_IMAGE` tracks `ghcr.io/block/buzz:main` for early testing. Pin it to `ghcr.io/block/buzz:sha-<7>` or a semver release tag for production once available.
- `BUZZ_CORS_ORIGINS` must keep the desktop webview origins (`tauri://localhost`
for macOS/Linux, `http://tauri.localhost` for Windows) alongside your public
domain. The relay treats the list as exact origins with no permissive
fallback, so without the tauri entries desktop flows that use the HTTP API
(joining a community, invites, moderation) fail with a generic "Load failed".
- Keep `BUZZ_RELAY_PRIVATE_KEY`, `BUZZ_GIT_HOOK_HMAC_SECRET`, database/Redis,
and S3 secrets stable across restarts.
- `RELAY_OWNER_PUBKEY` is intentionally not prefixed with `BUZZ_`; it must be a
Expand Down