From 72fdf0f5468e6b277e18b83656d56bac4d81b8be Mon Sep 17 00:00:00 2001 From: Chase Granberry Date: Tue, 8 Aug 2023 10:29:08 -0700 Subject: [PATCH] fix: update config for prod fly v2 --- deploy/fly/prod.toml | 51 ++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 28 deletions(-) diff --git a/deploy/fly/prod.toml b/deploy/fly/prod.toml index 0a97086e8..8a3a0fd46 100644 --- a/deploy/fly/prod.toml +++ b/deploy/fly/prod.toml @@ -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" @@ -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] -