-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
72 lines (59 loc) · 1.34 KB
/
Copy pathfly.toml
File metadata and controls
72 lines (59 loc) · 1.34 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Fly.io deployment configuration
app = "prospectiq"
primary_region = "sjc" # San Jose, CA (change as needed)
[build]
dockerfile = "Dockerfile"
[env]
API_HOST = "0.0.0.0"
API_PORT = "8000"
ENVIRONMENT = "production"
DEBUG = "false"
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 1
processes = ["app"]
[http_service.concurrency]
type = "connections"
hard_limit = 1000
soft_limit = 800
[[services]]
protocol = "tcp"
internal_port = 8000
[[services.ports]]
port = 80
handlers = ["http"]
force_https = true
[[services.ports]]
port = 443
handlers = ["tls", "http"]
[services.concurrency]
type = "connections"
hard_limit = 1000
soft_limit = 800
[[services.tcp_checks]]
interval = "15s"
timeout = "10s"
grace_period = "30s"
[[services.http_checks]]
interval = "30s"
timeout = "10s"
grace_period = "30s"
method = "get"
path = "/health"
protocol = "http"
# VM configuration
[vm]
cpu_kind = "shared"
cpus = 2
memory_gb = 2
# Auto-scaling
[scaling]
min_count = 1
max_count = 4
# PostgreSQL connection (set via fly secrets)
# fly secrets set DATABASE_URL="postgresql://..."
# fly secrets set OPENAI_API_KEY="sk-..."
# fly secrets set JWT_SECRET_KEY="..."