fly.io stuff

This commit is contained in:
uh wot 2022-08-16 17:59:09 +02:00
parent e72779c338
commit ae75a24129
Signed by: uhwot
GPG key ID: CB2454984587B781
4 changed files with 68 additions and 1 deletions

35
fly.toml Normal file
View file

@ -0,0 +1,35 @@
app = "dzmedia"
kill_signal = "SIGINT"
kill_timeout = 5
[experimental]
# required because we can't infer your binary's name
cmd = "./dzmedia"
[env]
PORT = "8080"
RUST_LOG = "actix_web=info"
[[services]]
internal_port = 8080
protocol = "tcp"
[services.concurrency]
hard_limit = 25
soft_limit = 20
[[services.ports]]
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
port = "8080"
restart_limit = 6
timeout = "2s"