-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfly.toml
69 lines (56 loc) · 1.35 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# fly.toml app configuration file generated for cti on 2023-05-26T11:03:37+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "cti"
primary_region = "fra"
kill_signal = "SIGINT"
kill_timeout = "16s"
[deploy]
strategy = "canary"
[build]
dockerfile = "Dockerfile"
build-target = "production"
[build.args]
# https://community.fly.io/t/vcvttsd2usi-illegal-instruction-on-fly-io-but-not-locally-or-on-github-ci/5713/2
RUSTFLAGS = "-Clink-arg=-fuse-ld=mold -Ctarget-cpu=znver2"
[env]
DATABASE_POOL_SIZE = "20"
HOST_IP = "0.0.0.0"
PORT = "3000"
RUST_BACKTRACE = "full"
RUST_LOG = "info"
[metrics]
port = 3000
path = "/metrics"
[[services]]
protocol = "tcp"
internal_port = 3000
processes = ["app"]
concurrency.type = "connections"
concurrency.hard_limit = 2000
concurrency.soft_limit = 1000
[[services.ports]]
port = 80
handlers = ["http"]
force_https = true
[[services.ports]]
port = 443
handlers = ["tls", "http"]
tls_options.alpn = ["h2", "http/1.1"]
tls_options.versions = ["TLSv1.2", "TLSv1.3"]
[services.ports.http_options.response]
pristine = true
[services.ports.http_options.response.headers]
# Example-Header = false
unicorn = "power"
[[services.tcp_checks]]
interval = "15s"
timeout = "2s"
grace_period = "1s"
restart_limit = 3
[[vm]]
size = "shared-cpu-1x"
# cpu_kind = "shared"
# cpu = "1"
memory = "256MB"