Repository navigation
Expand file tree
/
Copy pathfly.toml
More file actions
57 lines (49 loc) · 1.4 KB
/
Copy pathfly.toml
File metadata and controls
57 lines (49 loc) · 1.4 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
# fly.toml — Procella on Fly.io
#
# Deploy:
# fly launch --no-deploy --name procella
# fly deploy
#
# Docs: https://fly.io/docs/reference/configuration/
app = "procella"
primary_region = "iad"
[build]
dockerfile = "Dockerfile"
[deploy]
release_command = "/procella --migrate"
# Secrets: the app will not boot until these are set:
# fly secrets set PROCELLA_DATABASE_URL=<postgres-url>
# fly secrets set PROCELLA_ENCRYPTION_KEY=<64-hex-chars>
# fly secrets set PROCELLA_TICKET_SIGNING_KEY=<32+chars>
# fly secrets set PROCELLA_DEV_AUTH_TOKEN=<token>
# fly secrets set PROCELLA_BLOB_S3_BUCKET=<bucket>
# fly secrets set AWS_ACCESS_KEY_ID=<key> AWS_SECRET_ACCESS_KEY=<secret>
#
# Non-sensitive runtime config
[env]
PROCELLA_LISTEN_ADDR = ":9090"
PROCELLA_AUTH_MODE = "dev"
PROCELLA_BLOB_BACKEND = "s3"
PROCELLA_BLOB_S3_REGION = "us-east-1"
# HTTP service — Fly handles TLS termination
[http_service]
internal_port = 9090
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 1
[http_service.concurrency]
type = "requests"
soft_limit = 200
hard_limit = 250
[[http_service.checks]]
grace_period = "10s"
interval = "15s"
method = "GET"
path = "/healthz"
timeout = "5s"
type = "http"
[[vm]]
memory = "512mb"
cpu_kind = "shared"
cpus = 1