-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfly.toml
47 lines (41 loc) · 1.01 KB
/
fly.toml
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
# fly.toml app configuration file generated for norns-white-cloud-9303 on 2024-04-10T11:32:39+08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "full-stack-fastapi-nextjs"
primary_region = "sin" # fly regions list
[processes]
app = "python main.py"
[[services]]
internal_port = 8000
protocol = "tcp"
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[[services.ports]]
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.http_checks]]
interval = 30000 # 30s
grace_period = "5s"
method = "get"
path = "/health"
protocol = "http"
timeout = 2000 # 2s
tls_skip_verify = true
[services.http_checks.headers]
[services.concurrency]
type = "connections"
soft_limit = 400
hard_limit = 500
[deploy]
strategy = "bluegreen"
[[vm]]
size = "shared-cpu-1x"
cpu_kind = "shared"
cpus = 1
memory_mb = 256