Limits
Server limits are the default quotas and rate limits for every user. You set them in /admin/limits. This page lists each limit, its default, and how tiers and per-user overrides change it.
Change a limit
- Open
/admin/limits. - Enter a value in the Override column. Leave a field blank to use the built-in default.
- If you are shortening history retention or the orphaned blob grace period, tick I understand that shorter retention or GC grace can permanently delete data.
- Save.
The page shows the value in effect for each setting and whether it is a Saved override or the Built-in default.
Changes apply to the next request, with no restart. They are stored in the database and survive restarts.
Reset all limits to the built-in defaults removes every saved override on this page. It does not touch service keys or the service proxy switch.
Values must be whole numbers, zero or above. Changes per push and all rate-limit values must be above zero.
Settings
| Setting | Name in the API | Default | 0 means |
|---|---|---|---|
| Maximum single upload (bytes) | maxBlobSizeBytes |
50 MB | No limit |
| Change-log storage per user (bytes) | maxDbBytesPerUser |
100 MB | No limit |
| Blob storage per user (bytes) | maxBlobBytesPerUser |
1 GB | No limit |
| Apps per user | maxAppsPerUser |
10 | Users cannot create apps |
| Changes per push | maxChangesPerPush |
1000 | Not allowed |
| Change-history retention (days) | changeRetentionDays |
90 | Keep history forever |
| Orphaned blob grace period (days) | blobGcGraceDays |
7 | Delete as soon as the cleanup job allows |
| Bundle calls per user per month | maxBundleInvocationsPerMonth |
0 | No limit |
| Active shares per user | maxSharesPerUser |
1000 | No limit |
| Share payload (bytes) | maxSharePayloadBytes |
1 MB | No limit |
| Recipients per share | maxShareRecipients |
50 | No limit |
Sizes are entered in bytes. 1 MB is 1048576 bytes and 1 GB is 1073741824 bytes.
- Change-history retention is how long old change history is kept before the pruning job collapses it. See Maintenance.
- Orphaned blob grace period is how long a blob that nothing refers to is kept before the blob cleanup job deletes it. It is one value for the whole server. Tiers and users cannot change it.
- Bundle calls are service calls made with a key you provide. See Services.
Lowering a quota can block new writes. It does not delete existing data. Shortening retention or the grace period can delete data for good at the next maintenance run.
Per-service allowances
Per-service monthly bundle allowances caps bundle calls for one service, on top of Bundle calls per user per month. A call must fit within both.
Enter one service=number per line:
podcast.podcastindex=2000
ai.claude=100
- A service that is not listed, or is set to
0, has no cap of its own. - Blank uses the built-in list, which is empty.
- Override with no per-service caps saves an empty list. Because the built-in list is already empty, this changes nothing on a server started with
civ api start.
Rate limits
Each rate limit has a Window (ms) and a Maximum requests in that window.
| Bucket | Covers | Default | Counted per |
|---|---|---|---|
sync |
Sync requests | 60 per minute | User |
auth |
Sign-up, password reset, verification emails, sign-in links, email codes, app token exchange | 10 per minute | IP address |
blobUpload |
Blob uploads | 30 per minute | User |
shareCreate |
Creating shares | 30 per minute | User |
serviceProxy |
Calls to rate-limited services | 20 per 5 minutes | User |
archiveCreate |
Account backups and restores | 3 per day | User |
Saving a new rate limit does not reset counters that are already running.
How limits combine
For each user, the server works out limits in this order. Later steps win.
- The built-in default.
- The saved server value from
/admin/limits. - The user's tier, for each field the tier sets.
- The user's own override, set on their page in the admin panel.
- Add-on blocks the user bought are added on top. See Billing.
Rate limits follow steps 1 to 4. The auth rate limit and the orphaned blob grace period only use steps 1 and 2.
Per-service allowances are combined by service name: a tier's or user's number for a service replaces the server's number for that service, and other services keep theirs.
Change-history retention can also be set per app, in the Retention (days) column of /admin/apps. For pruning, an app's value wins over the server, tier and user values.
Audit log
Each save or reset adds a server_limits_changed entry to the audit log (/admin/logs), with the overrides before and after. Its via value is session for a signed-in admin or admin_token for a script.