-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfly.toml
More file actions
49 lines (43 loc) · 933 Bytes
/
Copy pathfly.toml
File metadata and controls
49 lines (43 loc) · 933 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
46
47
48
49
# Fly.io deployment descriptor for OpenSolve
app = "opensolve-app"
primary_region = "iad"
kill_signal = "SIGINT"
kill_timeout = 5
[build]
dockerfile = "Dockerfile"
[env]
NODE_ENV = "production"
PORT = "3000"
[processes]
app = "node server.js"
worker = "npm run judge:worker"
[[services]]
internal_port = 3000
processes = ["app"]
protocol = "tcp"
[services.concurrency]
hard_limit = 80
soft_limit = 60
type = "connections"
[[services.ports]]
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
interval = "15s"
timeout = "2s"
[[services.http_checks]]
interval = "15s"
grace_period = "30s"
method = "GET"
path = "/api/trpc/health.status"
protocol = "http"
timeout = "5s"
[[vm]]
processes = ["app"]
size = "performance-2x"
[[vm]]
processes = ["worker"]
size = "performance-1x"