-
Notifications
You must be signed in to change notification settings - Fork 89
/
fly.toml
41 lines (34 loc) · 907 Bytes
/
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
# create machines type app, so scale to zero worker
# fly apps create --machines --name swuecho-chat-m
app = "swuecho-chat-m" # change this to your app name
kill_signal = "SIGINT"
kill_timeout = 5
primary_region = "dfw" # change this to your region
processes = []
# flyctl secrets set OPENAI_RATELIMIT=1
# flyctl secrets set OPENAI_API_KEY=sk-xxxx
# flyctl secrets set CLAUDE_API_KEY=sk-xxxx
[experimental]
auto_rollback = true
[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 100
soft_limit = 80
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"