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'