Skip to content

Commit

Permalink
fix: update config for prod fly v2 (#629)
Browse files Browse the repository at this point in the history
* fix: update config for prod fly v2

* fix: bump version
  • Loading branch information
chasers authored Aug 14, 2023
1 parent d74d161 commit 938cf35
Showing 1 changed file with 23 additions and 28 deletions.
51 changes: 23 additions & 28 deletions deploy/fly/prod.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# fly.toml app configuration file generated for realtime-prod on 2023-08-08T09:07:09-07:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "realtime-prod"
primary_region = "sea"
kill_signal = "SIGTERM"
kill_timeout = 5
processes = []
kill_timeout = "5s"

[experimental]
auto_rollback = true

[deploy]
release_command = "/app/bin/migrate"
Expand All @@ -10,50 +18,37 @@ processes = []
[env]
DNS_NODES = "realtime-prod.internal"
ERL_CRASH_DUMP = "/data/erl_crash.dump"
ERL_CRASH_DUMP_SECONDS = 30

[experimental]
allowed_public_ports = []
auto_rollback = true
ERL_CRASH_DUMP_SECONDS = "30"

[mounts]
source="data_vol"
destination="/data"

[[services]]
protocol = "tcp"
internal_port = 4000
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
# should match :ranch.info max_connections * num_acceptors
hard_limit = 100000
soft_limit = 100000
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 = 100000
soft_limit = 100000

[[services.tcp_checks]]
grace_period = "30s"
interval = "15s"
restart_limit = 6
timeout = "2s"

grace_period = "30s"

[[services.http_checks]]
interval = 10000
interval = "10s"
timeout = "2s"
grace_period = "5s"
method = "get"
path = "/"
protocol = "http"
restart_limit = 0
timeout = 2000
tls_skip_verify = false
[services.http_checks.headers]

0 comments on commit 938cf35

Please sign in to comment.