Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 14 additions & 28 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -24,6 +11,7 @@ kill_timeout = '30s'
[build]

# ─── Environment Variables ───────────────────────────────────────────────────

[env]
NODE_ENV = 'production'
PORT = '3000'
Expand All @@ -39,31 +27,29 @@ 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'
hard_limit = 25
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'
Expand Down