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
# 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"
= "info"
# 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"