Skip to content

Commit 702dc2e

Browse files
committed
v2 fly.io
1 parent 7d42de2 commit 702dc2e

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

apps/api/fly.production.toml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,47 @@
1-
# fly.toml file generated for devfaq-api on 2022-11-19T13:46:34+01:00
1+
# fly.toml app configuration file generated for devfaq-api-production on 2023-05-09T10:27:26+02:00
2+
#
3+
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4+
#
25

36
app = "devfaq-api-production"
7+
primary_region = "waw"
48
kill_signal = "SIGINT"
5-
kill_timeout = 5
6-
processes = []
9+
kill_timeout = "5s"
710

8-
[env]
9-
PORT = "8080"
11+
[experimental]
12+
auto_rollback = true
1013

1114
[build]
1215
dockerfile = "Dockerfile"
1316

1417
[deploy]
1518
release_command = "pnpm --filter=api exec prisma migrate deploy"
1619

17-
[experimental]
18-
allowed_public_ports = []
19-
auto_rollback = true
20+
[env]
21+
GIT_BRANCH = "main"
22+
GIT_COMMIT_HASH = "7d42de248dcd4fcaec1c321fcf9f0b497691aa3f"
23+
PORT = "8080"
2024

2125
[[services]]
22-
http_checks = []
26+
protocol = "tcp"
2327
internal_port = 8080
2428
processes = ["app"]
25-
protocol = "tcp"
26-
script_checks = []
27-
[services.concurrency]
28-
hard_limit = 25
29-
soft_limit = 20
30-
type = "connections"
3129

3230
[[services.ports]]
33-
force_https = true
34-
handlers = ["http"]
3531
port = 80
32+
handlers = ["http"]
33+
force_https = true
3634

3735
[[services.ports]]
38-
handlers = ["tls", "http"]
3936
port = 443
37+
handlers = ["tls", "http"]
38+
[services.concurrency]
39+
type = "connections"
40+
hard_limit = 25
41+
soft_limit = 20
4042

4143
[[services.tcp_checks]]
42-
grace_period = "1s"
4344
interval = "15s"
44-
restart_limit = 0
4545
timeout = "2s"
46+
grace_period = "1s"
47+
restart_limit = 0

0 commit comments

Comments
 (0)