-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
33 lines (27 loc) · 1.06 KB
/
Copy pathfly.toml
File metadata and controls
33 lines (27 loc) · 1.06 KB
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
# Fly.io deployment. `fly deploy` builds the Dockerfile and ships the binary.
# WebSockets work over the standard HTTP service — no special config needed.
#
# v1 is single-instance: all room state lives in process memory, so DO NOT scale
# past one machine (no cross-instance state sharing). Keep `fly scale count 1`.
# Set BASE_URL so the room links returned at creation point at your real host:
# fly secrets set BASE_URL=https://<your-app>.fly.dev
app = "void"
primary_region = "iad"
[build]
[env]
PORT = "8080"
# BASE_URL = "https://void.fly.dev" # prefer `fly secrets set BASE_URL=...`
[http_service]
internal_port = 8080
force_https = true # HTTP → HTTPS; WebSocket upgrades to wss
# Keep the machine warm for a live talk; never auto-stop (in-memory state).
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 1
[http_service.concurrency]
type = "connections"
soft_limit = 200 # the per-room concurrency target from VOID.md
hard_limit = 250
[[vm]]
size = "shared-cpu-1x"
memory = "256mb"