-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
53 lines (45 loc) · 1.26 KB
/
fly.toml
File metadata and controls
53 lines (45 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Fly.io deployment config for OG Engine
# Deploy: fly deploy
# Secrets (set via fly secrets set):
# STRIPE_SECRET_KEY - Stripe API secret key
# STRIPE_WEBHOOK_SECRET - Stripe webhook signing secret
# STRIPE_PRICE_STARTER - Stripe Price ID for Starter plan
# STRIPE_PRICE_PRO - Stripe Price ID for Pro plan
# STRIPE_PRICE_SCALE - Stripe Price ID for Scale plan
# RESEND_API_KEY - Resend transactional email API key
# ADMIN_CRON_SECRET - Shared secret for GitHub Action cron
app = "og-engine"
primary_region = "cdg"
[build]
dockerfile = "Dockerfile"
[env]
PORT = "3000"
NODE_ENV = "production"
DATABASE_URL = "file:/data/og-engine.db"
IMAGE_CACHE_MAX = "1000"
RATE_LIMIT_MAX = "100"
RATE_LIMIT_WINDOW_MS = "60000"
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 1
processes = ["app"]
[http_service.concurrency]
type = "requests"
hard_limit = 250
soft_limit = 200
[[http_service.checks]]
grace_period = "5s"
interval = "15s"
method = "GET"
path = "/health"
timeout = "2s"
[mounts]
source = "og_engine_data"
destination = "/data"
[[vm]]
size = "shared-cpu-1x"
memory = "512mb"
cpus = 1