-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
45 lines (37 loc) · 893 Bytes
/
fly.toml
File metadata and controls
45 lines (37 loc) · 893 Bytes
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
app = "scroll-press"
primary_region = "fra"
[build]
dockerfile = "Dockerfile"
[build.args]
GIT_COMMIT = "auto"
[env]
PORT = "8000"
PYTHONPATH = "."
ENVIRONMENT = "production"
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1
max_machines_running = 1 # Limited to 1 until CSRF/rate limiting moved to database
processes = ["app"]
# Autoscaling configuration for 100 concurrent users
[http_service.concurrency]
type = "requests"
soft_limit = 75
hard_limit = 100
# Health checks
[[http_service.checks]]
grace_period = "10s"
interval = "15s"
method = "GET"
path = "/health"
protocol = "http"
timeout = "3s"
[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 1024
[deploy]
release_command = "uv run --frozen alembic upgrade head"