Skip to content

Commit

Permalink
Update to fly v2
Browse files Browse the repository at this point in the history
  • Loading branch information
owenthereal committed Sep 17, 2023
1 parent 3e4e0fa commit 9449cf0
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,53 +1,57 @@
# fly.toml file generated for upterm on 2022-06-27T11:01:32-07:00
# fly.toml app configuration file generated for upterm on 2023-09-17T09:40:01-07:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "upterm"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
dockerfile = "Dockerfile.uptermd"
kill_timeout = "5s"

[experimental]
cmd = ["uptermd --ssh-addr 0.0.0.0:2222 --ws-addr 0.0.0.0:8080 --node-addr $(echo ${FLY_ALLOC_ID} | cut -f1 -d '-').vm.${FLY_APP_NAME}.internal:2222 --hostname uptermd.upterm.dev"]
entrypoint = ["/bin/sh", "-c"]
allowed_public_ports = []
auto_rollback = true

[build]
dockerfile = "Dockerfile.uptermd"

[[services]]
protocol = "tcp"
internal_port = 2222
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 3
processes = ["app"]
protocol = "tcp"

[[services.ports]]
port = 22
[services.concurrency]
type = "connections"
hard_limit = 2500
soft_limit = 2000
type = "connections"

[[services.ports]]
port = 22

[[services.tcp_checks]]
grace_period = "5s"
interval = "15s"
restart_limit = 0
timeout = "2s"
grace_period = "5s"

[[services]]
protocol = "tcp"
internal_port = 8080
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 3
processes = ["app"]
protocol = "tcp"

[services.concurrency]
hard_limit = 2500
soft_limit = 2000
type = "connections"

[[services.ports]]
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 = 2500
soft_limit = 2000

0 comments on commit 9449cf0

Please sign in to comment.