From 73f1b505c6d6b63feaf10f0174ff334c46fa8eab Mon Sep 17 00:00:00 2001 From: Jan Baykara Date: Tue, 17 Oct 2023 13:09:44 +0000 Subject: [PATCH] Fly v2 --- fly.toml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/fly.toml b/fly.toml index f308bb37..b819c12a 100644 --- a/fly.toml +++ b/fly.toml @@ -1,7 +1,12 @@ -app = "lbc-staging" +# fly.toml app configuration file generated for lbc-staging on 2023-10-17T13:13:20+01:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# +app = "lbc-staging" kill_signal = "SIGINT" -kill_timeout = 5 +primary_region = "lhr" +kill_timeout = "5s" [deploy] release_command = "make release" @@ -13,10 +18,18 @@ kill_timeout = 5 [[services]] internal_port = 8080 protocol = "tcp" - [services.concurrency] hard_limit = 25 soft_limit = 20 + type = "connections" + + [[services.ports]] + handlers = ["http"] + port = 80 + + [[services.ports]] + handlers = ["tls", "http"] + port = 443 [[services.http_checks]] grace_period = "5s" @@ -26,14 +39,6 @@ kill_timeout = 5 protocol = "http" timeout = 2000 - [[services.ports]] - handlers = ["http"] - port = "80" - - [[services.ports]] - handlers = ["tls", "http"] - port = "443" - [[statics]] guest_path = "/app/static" url_prefix = "/static"