fly.io stuff
This commit is contained in:
parent
e72779c338
commit
ae75a24129
4 changed files with 68 additions and 1 deletions
35
fly.toml
Normal file
35
fly.toml
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue