mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-13 06:03:39 -06:00
8190c326ce
* feat(gateway): add /startupz startup probe with auth-gated version detail
Startup/traffic-admission probe that excludes downstream channel health:
200 started once startup work completes and the gateway is not draining,
503 starting/draining otherwise. Version and uptime are only included for
local-direct or authenticated callers, reusing the /readyz detail gate.
* fix(deploy): use /startupz for traffic admission in bundled templates
fly.toml gains its missing HTTP check; render.yaml stops using pure
liveness as admission; k8s pins an immutable image tag, seeds config
only when missing, and adds a startupProbe; stale Fly healthcheck-port
doc corrected (healthcheck follows the active gateway lock port since
bc4221a07e).
* docs(k8s): make persistent-file config ownership explicit with reseed path
42 lines
884 B
TOML
42 lines
884 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"]
|
|
|
|
[[http_service.checks]]
|
|
grace_period = "2m"
|
|
interval = "15s"
|
|
method = "GET"
|
|
timeout = "5s"
|
|
path = "/startupz"
|
|
|
|
[[vm]]
|
|
size = "shared-cpu-2x"
|
|
memory = "2048mb"
|
|
|
|
[mounts]
|
|
source = "openclaw_data"
|
|
destination = "/data"
|