From 7630565c26772b555468d475645f3987067affec Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 17 May 2024 14:33:59 -0700 Subject: [PATCH] Create fly.staging.toml --- apps/api/fly.staging.toml | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 apps/api/fly.staging.toml diff --git a/apps/api/fly.staging.toml b/apps/api/fly.staging.toml new file mode 100644 index 0000000..d5ad9ef --- /dev/null +++ b/apps/api/fly.staging.toml @@ -0,0 +1,56 @@ +# 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. +# + +app = 'staging-firecrawl-scraper-js' +primary_region = 'mia' +kill_signal = 'SIGINT' +kill_timeout = '5s' + +[build] + +[processes] + app = 'npm run start:production' + worker = 'npm run worker:production' + +[http_service] + internal_port = 8080 + force_https = true + auto_stop_machines = false + auto_start_machines = true + min_machines_running = 2 + processes = ['app'] + +[http_service.concurrency] + type = "requests" + hard_limit = 200 + soft_limit = 100 + +[[services]] + protocol = 'tcp' + internal_port = 8080 + processes = ['app'] + +[[services.ports]] + port = 80 + handlers = ['http'] + force_https = true + +[[services.ports]] + port = 443 + handlers = ['tls', 'http'] + + [services.concurrency] + type = 'connections' + hard_limit = 75 + soft_limit = 30 + +[[vm]] + size = 'performance-4x' + processes = ['app'] + + + + +