flotilla/e2e/harness/zooid/docker/config/closed.toml

49 lines
1.8 KiB
TOML
Raw Normal View History

2026-08-20 20:33:20 +00:00
# A relay that will not let anyone join on their own say-so: `public_join = false` makes zooid
# refuse a kind-28934 that carries no claim, which is what turns the join dialog into "Request
# Access". Everything else matches space.toml.
#
# Seeding a membership here is therefore not possible — `join()` and `member()` publish a claimless
# RELAY_JOIN and the relay refuses it — so a scenario using this relay seeds admin-created rooms
# and lets the spec drive the join itself.
#
# `host` must equal the Host header the harness sends, which is the hostname of the url the client
# is given; anything else gets a 404 from the dispatcher instead of a relay. Keep it in step with
# `tenants` in harness/zooid/config.ts, and see harness/zooid/transport.ts for why it is a name
# that resolves nowhere.
host = "closed.test"
schema = "e2e_closed"
secret = "c105ed0000000000000000000000000000000000000000000000000000000006"
[info]
# Served to the client as nip-11. `name` is what a spec sees as the space's name, so it matches the
# name scenarios pass to `relay()`. `pubkey` is the owner, and here it is the relay's own key (the
# pubkey for `secret`) so that [roles.admin] below is the only thing granting a test identity
# can_manage.
name = "closed"
pubkey = "9b78ed2f0054d1f6ce8307c81e7c4f5aefc78f2396416da05299caac2fb8662e"
description = "Throwaway relay for Flotilla's end-to-end suite."
[policy]
public_read = false
public_write = false
public_join = false
strip_signatures = false
[groups]
enabled = true
[management]
enabled = true
# Blossom and push are off, and [livekit] is omitted entirely, because each of them would have
# the relay or the client talk to a service the test did not create.
[blossom]
enabled = false
[push]
enabled = false
[roles.admin]
pubkeys = ["6ada7b6eabb3a8349f88667d278a275c704b553a7c57f9d8156555986884a08e"]
can_manage = true