2024-04-16 05:01:47 +08:00
|
|
|
# fly.toml app configuration file generated for firecrawl-scraper-js on 2024-04-07T21:09:59-03:00
|
|
|
|
#
|
|
|
|
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
|
|
|
|
#
|
|
|
|
|
2024-07-11 05:29:55 +08:00
|
|
|
app = 'staging-firecrawl-scraper-js'
|
2024-04-16 05:01:47 +08:00
|
|
|
primary_region = 'mia'
|
|
|
|
kill_signal = 'SIGINT'
|
2024-07-12 02:09:06 +08:00
|
|
|
kill_timeout = '30s'
|
2024-04-16 05:01:47 +08:00
|
|
|
|
2024-07-12 05:14:15 +08:00
|
|
|
[deploy]
|
|
|
|
release_command = 'node dist/src/trigger-shutdown.js https://staging-firecrawl-scraper-js.fly.dev'
|
|
|
|
|
2024-04-16 05:01:47 +08:00
|
|
|
[build]
|
|
|
|
|
|
|
|
[processes]
|
2024-07-12 05:14:15 +08:00
|
|
|
app = 'node dist/src/index.js'
|
|
|
|
worker = 'node dist/src/services/queue-worker.js'
|
2024-04-16 05:01:47 +08:00
|
|
|
|
|
|
|
[http_service]
|
|
|
|
internal_port = 8080
|
|
|
|
force_https = true
|
2024-07-11 05:29:55 +08:00
|
|
|
auto_stop_machines = true
|
2024-04-16 05:01:47 +08:00
|
|
|
auto_start_machines = true
|
2024-05-05 04:49:09 +08:00
|
|
|
min_machines_running = 2
|
2024-04-16 05:01:47 +08:00
|
|
|
processes = ['app']
|
|
|
|
|
2024-05-07 08:16:43 +08:00
|
|
|
[http_service.concurrency]
|
|
|
|
type = "requests"
|
2024-06-04 15:41:15 +08:00
|
|
|
hard_limit = 100
|
|
|
|
soft_limit = 50
|
2024-05-07 08:16:43 +08:00
|
|
|
|
2024-05-28 01:01:12 +08:00
|
|
|
[[http_service.checks]]
|
2024-07-11 05:29:55 +08:00
|
|
|
grace_period = "10s"
|
2024-05-28 01:01:12 +08:00
|
|
|
interval = "30s"
|
|
|
|
method = "GET"
|
2024-07-11 05:29:55 +08:00
|
|
|
timeout = "5s"
|
2024-05-28 01:01:12 +08:00
|
|
|
path = "/"
|
|
|
|
|
2024-07-11 05:29:55 +08:00
|
|
|
|
2024-04-16 05:01:47 +08:00
|
|
|
[[services]]
|
|
|
|
protocol = 'tcp'
|
|
|
|
internal_port = 8080
|
2024-07-11 05:29:55 +08:00
|
|
|
processes = ['worker']
|
2024-04-16 05:01:47 +08:00
|
|
|
|
|
|
|
[[services.ports]]
|
|
|
|
port = 80
|
|
|
|
handlers = ['http']
|
|
|
|
force_https = true
|
|
|
|
|
|
|
|
[[services.ports]]
|
|
|
|
port = 443
|
|
|
|
handlers = ['tls', 'http']
|
|
|
|
|
|
|
|
[services.concurrency]
|
|
|
|
type = 'connections'
|
2024-07-11 05:29:55 +08:00
|
|
|
hard_limit = 25
|
|
|
|
soft_limit = 20
|
2024-04-16 05:01:47 +08:00
|
|
|
|
|
|
|
[[vm]]
|
2024-07-11 05:29:55 +08:00
|
|
|
size = 'performance-1x'
|
|
|
|
processes = ['app','worker']
|
|
|
|
|
2024-05-07 08:16:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-16 05:01:47 +08:00
|
|
|
|
|
|
|
|