actual-server/fly.template.toml
Arthur E. Jones 32bf923c1a build: add node GC argument to fly template
Fly deployments on the free tier have ~256mb of memory available. Users
with large transaction histories were encountering out of memory errors
when attempting to export their data. This commit adds a node argument
to (more or less) run the garbage collector at a smaller memory usage,
helping keep users on flyio within their available limit.
2022-08-31 23:51:05 -04:00

41 lines
711 B
TOML

app = "%NAME%"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
PORT = "5006"
TINI_SUBREAPER = 1
[experimental]
allowed_public_ports = []
auto_rollback = true
cmd = ["node", "--max-old-space-size=180", "app.js"]
[[services]]
http_checks = []
internal_port = 5006
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "10s"
interval = "15s"
restart_limit = 0
timeout = "2s"