From 325cd6137d86b11c1adfa6e387a01ef8b5113a50 Mon Sep 17 00:00:00 2001 From: Kevin Codex Date: Fri, 4 Dec 2026 12:35:02 +0800 Subject: [PATCH] chore(fly): node2/node3 configs as deployed on 0.9.0 Trusted Fly proxy peer per machine (0.9.0 ignores Fly-Client-IP without TWIGPINE_TRUSTED_PROXY_CIDRS) and a 30 min startup-migration budget. --- infra/fly/gitlawb-node-2.fly.toml | 6 ++++++ infra/fly/gitlawb-node-3.fly.toml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/infra/fly/gitlawb-node-2.fly.toml b/infra/fly/gitlawb-node-2.fly.toml index 0d23bdfd1..5d7e4f243 100644 --- a/infra/fly/gitlawb-node-2.fly.toml +++ b/infra/fly/gitlawb-node-2.fly.toml @@ -16,6 +16,12 @@ primary_region = 'sjc' TWIGPINE_DB_MAX_CONNECTIONS = '30' TWIGPINE_DB_LOCK_POOL_MAX_CONNECTIONS = '24' TWIGPINE_MAX_CONCURRENT_GIT_PUSHES = '16' + # 0.9.0: startup migrations get up to 30 min (60 s default is too tight on big tables) + TWIGPINE_DB_CONNECT_TIMEOUT_SECS = '1800' + # 0.9.0: key per-client limits on Fly-Client-IP, trusted only from this machine's + # Fly proxy peer (measured 2026-12-04; changes if Fly moves the machine to another host) + TWIGPINE_TRUSTED_PROXY = 'fly' + TWIGPINE_TRUSTED_PROXY_CIDRS = '172.19.60.209/32' GITLAWB_AUTO_SYNC = 'true' GITLAWB_BOOTSTRAP_PEERS = 'https://node.gitlawb.com,https://node3.gitlawb.com' GITLAWB_HOST = '0.0.0.0' diff --git a/infra/fly/gitlawb-node-3.fly.toml b/infra/fly/gitlawb-node-3.fly.toml index 8b594a45c..e09bfa186 100644 --- a/infra/fly/gitlawb-node-3.fly.toml +++ b/infra/fly/gitlawb-node-3.fly.toml @@ -16,6 +16,12 @@ primary_region = 'nrt' TWIGPINE_DB_MAX_CONNECTIONS = '30' TWIGPINE_DB_LOCK_POOL_MAX_CONNECTIONS = '24' TWIGPINE_MAX_CONCURRENT_GIT_PUSHES = '16' + # 0.9.0: startup migrations get up to 30 min (60 s default is too tight on big tables) + TWIGPINE_DB_CONNECT_TIMEOUT_SECS = '1800' + # 0.9.0: key per-client limits on Fly-Client-IP, trusted only from this machine's + # Fly proxy peer (measured 2026-12-04; changes if Fly moves the machine to another host) + TWIGPINE_TRUSTED_PROXY = 'fly' + TWIGPINE_TRUSTED_PROXY_CIDRS = '172.19.60.241/32' GITLAWB_AUTO_SYNC = 'true' GITLAWB_BOOTSTRAP_PEERS = 'https://node.gitlawb.com,https://node2.gitlawb.com' GITLAWB_HOST = '0.0.0.0'