forked from zauberzeug/nicegui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fly.toml
64 lines (52 loc) · 1.22 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
app = "nicegui"
#app = "nicegui-preview"
kill_signal = "SIGTERM"
kill_timeout = 5
processes = []
[build]
dockerfile = "fly.dockerfile"
[env]
[deploy]
# boot a single, new VM with the new release, verify its health, then
# One by one, each running VM is taken down and replaced by the new release VM
strategy = "canary"
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 20
soft_limit = 10
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "10s"
interval = "5s"
restart_limit = 1
timeout = "1s"
[[services.http_checks]]
interval = "20s"
grace_period = "30s"
method = "get"
path = "/"
protocol = "http"
restart_limit = 1
timeout = "2s"
tls_skip_verify = false
[services.http_checks.headers]
[[statics]]
guest_path = "/app/nicegui/static"
url_prefix = "/_nicegui/static"
[metrics]
port = 9062
path = "/metrics" # default for most prometheus clients