Skip to content

Commit

Permalink
perf: update to fly apps v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuhito committed Apr 26, 2023
1 parent 0a9e19b commit b0ce599
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
36 changes: 17 additions & 19 deletions website/fly.toml
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@
# fly.toml file generated for fontsource on 2022-09-05T14:40:49+01:00
# fly.toml app configuration file generated for fontsource on 2023-04-26T11:41:43+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "fontsource"
primary_region = "lhr"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[env]
kill_timeout = "5s"

[experimental]
enable_consul = true
allowed_public_ports = []
auto_rollback = true
enable_consul = true

[[services]]
# This is set to the INTERNAL_PORT env variable in the Dockerfile
protocol = "tcp"
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 40
soft_limit = 35
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 = 40
soft_limit = 35

[[services.tcp_checks]]
grace_period = "5s"
interval = "15s"
restart_limit = 5
timeout = "2s"
grace_period = "5s"
restart_limit = 5
2 changes: 1 addition & 1 deletion website/litefs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ lease:

consul:
url: '${FLY_CONSUL_URL}'
key: 'litefs/${FLY_APP_NAME}'
key: '${FLY_APP_NAME}/primary'

exec:
- cmd: 'npm run migrations'
Expand Down

0 comments on commit b0ce599

Please sign in to comment.