Files
openclaw/fly.toml
小白 353f97bf10 清理仓库:删除 Git 历史和 PNG 图片
- 删除 .git 目录(历史记录)
- 删除 80 张 PNG 图片
- 保留核心代码、文档、扩展
- 大小从 141M 减少到 90M
2026-03-16 17:34:47 +08:00

35 lines
773 B
TOML

# OpenClaw Fly.io deployment configuration
# See https://fly.io/docs/reference/configuration/
app = "openclaw"
primary_region = "iad" # change to your closest region
[build]
dockerfile = "Dockerfile"
[env]
NODE_ENV = "production"
# Fly uses x86, but keep this for consistency
OPENCLAW_PREFER_PNPM = "1"
OPENCLAW_STATE_DIR = "/data"
NODE_OPTIONS = "--max-old-space-size=1536"
[processes]
app = "node dist/index.js gateway --allow-unconfigured --port 3000 --bind lan"
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = false # Keep running for persistent connections
auto_start_machines = true
min_machines_running = 1
processes = ["app"]
[[vm]]
size = "shared-cpu-2x"
memory = "2048mb"
[mounts]
source = "openclaw_data"
destination = "/data"