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
Something went wrong. Try again.
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,};