Skip to content

Commit

Permalink
migrated to fly.io v2
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Oct 5, 2023
1 parent 503769b commit 4a3c8f2
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,58 +1,57 @@
# fly.toml app configuration file generated for nicegui on 2023-10-05T05:09:32+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "nicegui"
#app = "nicegui-preview"
primary_region = "fra"
kill_signal = "SIGTERM"
kill_timeout = 5
processes = []
kill_timeout = "5s"

[experimental]
auto_rollback = true

[build]
dockerfile = "fly.dockerfile"

[env]

[deploy]
strategy = "bluegreen"

strategy = "bluegreen"

[experimental]
allowed_public_ports = []
auto_rollback = true
[processes]
app = ""

[[services]]
protocol = "tcp"
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 150
soft_limit = 80
type = "connections"

[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
handlers = ["http"]
force_https = true

[[services.ports]]
handlers = ["tls", "http"]
port = 443
handlers = ["tls", "http"]
[services.concurrency]
type = "connections"
hard_limit = 150
soft_limit = 80

[[services.tcp_checks]]
interval = "10s"
grace_period = "30s"
restart_limit = 3
timeout = "5s"
grace_period = "30s"

[[services.http_checks]]
interval = "20s"
grace_period = "1m"
timeout = "10s"
grace_period = "1m0s"
method = "get"
path = "/"
protocol = "http"
restart_limit = 3
timeout = "10s"
tls_skip_verify = false
[services.http_checks.headers]

[metrics]
[[metrics]]
port = 9062
path = "/metrics" # default for most prometheus clients
path = "/metrics"

0 comments on commit 4a3c8f2

Please sign in to comment.