Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
747 B ยท 16 lines
TypeScript
1234567891011121314151617import { env } from "@/env";
/** `skipValidation` hands back raw strings, so coerce; missing, non-numeric or zero values fall back. */export const limits = { /** * Conservative default for self-hosted single-container deploys. Fly * production overrides it from `apps/server/fly.toml`, where it must stay * above `soft_limit` and at most `hard_limit` so Fly scales out before the * app starts shedding. */ maxInFlight: Number(env.API_MAX_IN_FLIGHT) || 128, perMinute: Number(env.API_RATE_LIMIT_PER_MINUTE) || 600, burstPer10s: Number(env.API_RATE_LIMIT_BURST_PER_10S) || 100, writesPerMinute: Number(env.API_RATE_LIMIT_WRITES_PER_MINUTE) || 60, publicPerMinute: Number(env.API_RATE_LIMIT_PUBLIC_PER_MINUTE) || 120,};