From 3490957328b7db7cf6a23ed9688ea3b2718e6ab5 Mon Sep 17 00:00:00 2001 From: "fly-io[bot]" <52462049+fly-io[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 09:51:30 +0000 Subject: [PATCH] Update fly.toml scaling configuration via flyio-scale-from-ui Generated automatically by the Fly.io dashboard. --- fly.toml | 42 ++++++++++++++---------------------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/fly.toml b/fly.toml index fea10ce..9d43984 100644 --- a/fly.toml +++ b/fly.toml @@ -1,20 +1,7 @@ -# fly.toml — Silent WolfBot · Fly.io deployment -# Docs: https://fly.io/docs/reference/configuration/ +# fly.toml app configuration file generated for silentwolf on 2026-06-05T09:51:29Z # -# ─── DEPLOY STEPS (first time only) ──────────────────────────────────────────── -# 1. Install flyctl → https://fly.io/docs/hands-on/install-flyctl/ -# 2. fly auth login -# 3. fly launch --no-deploy -# → YES to use this fly.toml | NO to Managed Postgres -# 4. Create ONE persistent volume (data + session live together): -# fly vol create wolfbot_data --size 1 --region lad -# 5. Set secrets that can't live in this file (public repo): -# fly secrets set SESSION_ID="WOLF-BOT:your-session-string-here" -# fly secrets set DATABASE_URL="postgres://user:pass@host:5432/db?sslmode=require" -# 6. fly deploy +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. # -# Every future deploy is just: fly deploy -# ──────────────────────────────────────────────────────────────────────────────── app = 'silentwolf' primary_region = 'lad' @@ -24,6 +11,7 @@ kill_timeout = '30s' [build] # ─── Environment Variables ─────────────────────────────────────────────────── + [env] NODE_ENV = 'production' PORT = '3000' @@ -39,13 +27,15 @@ kill_timeout = '30s' PAYSTACK_KEY = '' # ─── HTTP Service ───────────────────────────────────────────────────────────── + [http_service] - internal_port = 3000 - force_https = true - auto_stop_machines = 'off' - auto_start_machines = true + internal_port = 3000 + force_https = true + auto_stop_machines = 'off' + auto_start_machines = true min_machines_running = 1 - processes = ['app'] + processes = ['app'] + concurrency = { hard_limit = 25, soft_limit = 20, type = 'connections' } [http_service.concurrency] type = 'connections' @@ -53,17 +43,13 @@ kill_timeout = '30s' soft_limit = 20 # ─── Machine size ───────────────────────────────────────────────────────────── + [[vm]] - memory = '1gb' + memory = '1gb' cpu_kind = 'shared' - cpus = 1 + cpus = 1 + memory_mb = 256 -# ─── Persistent volume (single mount — Fly.io supports only 1 per machine) ──── -# Create once before first deploy: -# fly vol create wolfbot_data --size 1 --region lad -# -# Both /app/data and /app/session are subdirectories of this single volume. -# Update your bot's session path to /app/data/session if it was /app/session. [[mounts]] source = 'wolfbot_data' destination = '/app/data'