forked from serverless-dns/serverless-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fly.toml
96 lines (82 loc) · 1.98 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
app = ""
kill_signal = "SIGINT"
kill_timeout = "15s"
# swap cannot be used with "suspend"
# community.fly.io/t/20672
# swap_size_mb = 152
[build]
dockerfile = "node.Dockerfile"
[experimental]
auto_rollback = true
[env]
CLOUD_PLATFORM = "fly"
BUN_ENV = "production"
DENO_ENV = "production"
NODE_ENV = "production"
LOG_LEVEL = "info"
# community.fly.io/t/19180
# fly.io/docs/machines/guides-examples/machine-restart-policy
[[restart]]
policy = "on-failure"
retries = 3
# DNS over HTTPS
[[services]]
protocol = "tcp"
internal_port = 8080
auto_stop_machines = "suspend"
auto_start_machines = true
[[services.ports]]
# TODO: ProxyProto v2
port = 443
[[services.ports]]
port = 8080
[services.concurrency]
type = "connections"
hard_limit = 775
soft_limit = 600
[[services.tcp_checks]]
# super aggressive interval and timeout because
# health-check routing is handled by fly-proxy
# and it is cross-region
# community.fly.io/t/12997
interval = "5s"
timeout = "1s"
grace_period = "15s"
# restart_limit not used on appsv2
restart_limit = 0
# DNS over TLS
[[services]]
protocol = "tcp"
internal_port = 10000
auto_stop_machines = "suspend"
auto_start_machines = true
[[services.ports]]
# TODO: ProxyProto v2
port = 853
[[services.ports]]
port = 10000
[services.concurrency]
type = "connections"
hard_limit = 775
soft_limit = 600
[[services.tcp_checks]]
# super aggressive interval and timeout because
# health-check routing is handled by fly-proxy
# and it is cross-region
# community.fly.io/t/12997
interval = "5s"
timeout = "1s"
grace_period = "15s"
# restart_limit is unused in appsv2
restart_limit = 0
# community.fly.io/t/5490/3
[checks]
[checks.up]
# grace_period affects time taken for rolling deploys
grace_period = "15s"
interval = "15s"
method = "get"
path = "/check"
port = 8888
timeout = "2s"
type = "http"