fly.io v2 migration

This commit is contained in:
uh wot 2023-05-26 01:58:14 +02:00
parent 3c17e1fd3b
commit 417a90842d
Signed by: uhwot
GPG Key ID: CB2454984587B781
1 changed files with 27 additions and 24 deletions

View File

@ -1,35 +1,38 @@
app = "dzmedia" # fly.toml app configuration file generated for dzmedia on 2023-05-26T01:51:41+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "dzmedia"
primary_region = "fra"
kill_signal = "SIGINT" kill_signal = "SIGINT"
kill_timeout = 5 kill_timeout = "5s"
[experimental] [experimental]
# required because we can't infer your binary's name cmd = ["./dzmedia"]
cmd = "./dzmedia"
[env] [env]
PORT = "8080" PORT = "8080"
RUST_LOG = "tower_http=trace" RUST_LOG = "tower_http=trace"
[[services]] [[services]]
internal_port = 8080 protocol = "tcp"
protocol = "tcp" internal_port = 8080
[services.concurrency] [[services.ports]]
hard_limit = 25 port = 80
soft_limit = 20 handlers = ["http"]
[[services.ports]] [[services.ports]]
handlers = ["http"] port = 443
port = 80 handlers = ["tls", "http"]
[services.concurrency]
type = "connections"
hard_limit = 25
soft_limit = 20
[[services.ports]] [[services.tcp_checks]]
handlers = ["tls", "http"] interval = "15s"
port = 443 timeout = "2s"
grace_period = "1s"
[[services.tcp_checks]] restart_limit = 6
grace_period = "1s"
interval = "15s"
port = "8080"
restart_limit = 6
timeout = "2s"