1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Fly.io deployment for `conclave serve` (PRD-0009 T-004).
#
# TLS terminates at Fly's edge (`force_https`); the app speaks plain WS on its internal port, matching
# the design's TLS-at-the-edge model (DESIGN §11/§12). Durable state lives on a mounted volume at
# /data. Set your app name and region, create the volume, set the admin secret, then `fly deploy`.
= "twitchax-conclave"
= "sjc"
[]
= "Dockerfile"
[]
= "0.0.0.0:4390"
= "/data"
# `conclavelib=debug` exports the per-request spans (join/post/read_since/…) to logs and OTLP
# without SurrealDB's debug noise; drop to plain "info" for lifecycle-only.
= "info,conclavelib=debug"
# Observability (PRD-0014/0017). `RUST_LOG=debug` adds per-request spans and frame dispatch;
# uncomment for structured log pipelines / an OTLP collector (base URL — /v1/traces and
# /v1/logs are appended; spans AND log records both export, trace-correlated).
# Authenticated collectors (Grafana Cloud etc.) take the standard headers env; set BOTH of these
# as secrets instead so the token stays out of the repo:
# fly secrets set CONCLAVE_OTLP_ENDPOINT="https://otlp-gateway-<region>.grafana.net/otlp" \
# OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic <base64 instance-id:token>"
# CONCLAVE_LOG_FORMAT = "json"
# Do NOT put the admin here — set it as a secret so the name is pinned to your key:
# fly secrets set CONCLAVE_ADMINS="you=<your-pubkey-b64-from-`conclave key`>"
# Persist the SurrealKV store across deploys/restarts. Create it once:
# fly volumes create conclave_data --region sjc --size 1
[[]]
= "conclave_data"
= "/data"
[]
= 4390
= true
# A relay must stay up to hold live WebSocket sessions — do not auto-stop.
= "off"
= true
= 1
# HTTP liveness on the dedicated /health route (the `/` origin is WS-only and returns 426).
[[]]
= "10s"
= "15s"
= "2s"
= "GET"
= "/health"