-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
57 lines (49 loc) · 2.01 KB
/
Copy pathfly.toml
File metadata and controls
57 lines (49 loc) · 2.01 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# The dev.site control plane on Fly.
#
# One machine, one volume, SQLite on it. That is a deliberate ceiling, not an
# oversight: a Fly volume is attached to a single machine in a single region, and
# nothing here wants more than one writer. The data is tiny — a few hundred bytes
# per account — and since the heartbeat went away the write path is a handful of
# rows per user per lifetime, so the constraint that matters is reads, which a
# shared CPU serves comfortably.
#
# What is *not* here, and must not be: DEVSITE_SIGNING_KEY. It is a secret.
app = "devsite"
primary_region = "sjc"
[build]
dockerfile = "Dockerfile"
[env]
# This forms OAuth callbacks and the capability issuer. Shoo also derives its
# default client id and pairwise subjects from it, so changing it after anyone
# has signed in is disruptive. It must match the hostname browsers load.
DEVSITE_PUBLIC_ORIGIN = "https://dev.site"
# This deployment uses the relays from its Iroh Services project. A fork can
# replace this list or remove it to use the n0 relay preset.
DEVSITE_RELAY_URLS = "https://e67jyfby7vj7ak9h9.euc1.relay.iroh-svc.com/,https://e67jyfby7vj7ak9h9.use1.relay.iroh-svc.com/,https://e67jyfby7vj7ak9h9.usw1.relay.iroh-svc.com/,https://e67jyfby7vj7ak9h9.aps1.relay.iroh-svc.com/"
RUST_LOG = "devsite_server=info,tower_http=warn,warn"
[[mounts]]
source = "devsite_data"
destination = "/data"
initial_size = "1gb"
[http_service]
internal_port = 8080
force_https = true
# Avoid a cold start on the capability-issuance path.
auto_stop_machines = "off"
auto_start_machines = true
min_machines_running = 1
[http_service.concurrency]
type = "requests"
hard_limit = 250
soft_limit = 200
# Cheap, unauthenticated, and touches no state: it reports the origin the process
# actually booted with, which is the setting most worth noticing is wrong.
[[http_service.checks]]
interval = "30s"
timeout = "5s"
grace_period = "10s"
method = "GET"
path = "/api/config"
[[vm]]
size = "shared-cpu-1x"
memory = "512mb"