-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathfly.toml
More file actions
58 lines (50 loc) · 1.35 KB
/
fly.toml
File metadata and controls
58 lines (50 loc) · 1.35 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
54
55
56
57
58
# Production fly.toml - US-focused deployment
app = 'vtchat'
primary_region = 'sin'
# US-focused 2-region setup
# sin: Asia-Pacific (primary)
# iad: USA (Ashburn, Virginia) - Target market
[build]
[env]
# Disable detailed request logging
# Only errors/warnings, not requests
LOG_LEVEL = "warn"
NODE_ENV = 'production'
HOST = '0.0.0.0'
BASE_URL = 'https://vtchat.io.vn'
BETTER_AUTH_URL = 'https://vtchat.io.vn'
NEXT_PUBLIC_BASE_URL = 'https://vtchat.io.vn'
APP_URL = 'https://vtchat.io.vn'
NEXT_PUBLIC_APP_URL = 'https://vtchat.io.vn'
NEXT_PUBLIC_COMMON_URL = 'https://vtchat.io.vn'
NEXT_PUBLIC_BETTER_AUTH_URL = 'https://vtchat.io.vn'
CREEM_ENVIRONMENT = 'production'
BETTER_AUTH_ENV = 'production'
# Node.js memory optimizations
NODE_OPTIONS = '--max-old-space-size=512 --max-semi-space-size=64'
# Disable Next.js telemetry to save memory
NEXT_TELEMETRY_DISABLED = '1'
# Reduce garbage collection frequency for better performance
UV_THREADPOOL_SIZE = '4'
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = 'suspend'
auto_start_machines = true
min_machines_running = 1
processes = ['app']
[[http_service.checks]]
grace_period = "15s"
interval = "60s"
method = "GET"
timeout = "10s"
path = "/api/health"
[[http_service.checks]]
type = "tcp"
grace_period = "5s"
interval = "30s"
timeout = "2s"
[[vm]]
memory = '512mb'
cpu_kind = 'shared'
cpus = 1