-
Notifications
You must be signed in to change notification settings - Fork 0
/
fly.toml
52 lines (41 loc) · 913 Bytes
/
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
kill_signal = "SIGINT"
kill_timeout = 5
[env]
DNSMASQ_LISTENING = "all"
INTERFACE = "eth0"
PH_VOLUME = "/mnt/ph_data"
[mounts]
destination = "/mnt/ph_data"
source = "ph_data"
# Web interface - admin panel
[[services]]
internal_port = 80
protocol = "tcp"
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
# DNS tcp/53 -> DNS-over-TLS tcp/853
[[services]]
internal_port = 53
protocol = "tcp"
[services.concurrency]
hard_limit = 150
soft_limit = 100
type = "connections"
# fly.io does TLS termination here
[[services.ports]]
handlers = ["tls"]
port = 853
[[services.tcp_checks]]
grace_period = "30s"
interval = "15s"
restart_limit = 1
timeout = "2s"