Configure Deployment Limits
Set per-deployment limits to reject archives that require more upload bandwidth, disk space, files, or path length than you intend to accept. These limits don’t provide total storage quotas or rate limiting.
Before You Start
Section titled “Before You Start”You need access to the Buzz server’s environment variables and a deployment you can use for verification. Changing a value requires a server restart.
Choose The Limits
Section titled “Choose The Limits”Choose values based on available upload bandwidth, extraction space, filesystem capacity, and the sites you intend to host:
BUZZ_MAX_ARCHIVE_BYTESlimits compressed upload size and bandwidth per deployment.BUZZ_MAX_SITE_BYTESlimits extracted bytes written for one site.BUZZ_MAX_SITE_FILESlimits archive entries and filesystem work, including implicit directories.BUZZ_MAX_ARCHIVE_PATH_BYTESlimits the UTF-8 byte length of each archive path.
Use the generated Configuration reference for the exact defaults and authoritative environment variable list.
Each individual path component is also limited to 255 UTF-8 bytes. That limit isn’t configurable.
The HTTP request-body limit is the configured compressed archive limit plus 1 MiB for multipart form overhead. A reverse proxy can impose a lower request limit before Buzz receives the upload.
Apply The Limits
Section titled “Apply The Limits”-
Set non-negative integer values in the deployment environment. For example:
BUZZ_MAX_ARCHIVE_BYTES=104857600BUZZ_MAX_SITE_BYTES=209715200BUZZ_MAX_SITE_FILES=5000BUZZ_MAX_ARCHIVE_PATH_BYTES=512 -
Restart or redeploy the server.
-
Deploy a known site that is below every configured limit.
-
Attempt a deployment that exceeds the limit you changed and confirm that Buzz returns
413for size or entry-count limits, or400for an overlong path.
Reducing a limit doesn’t remove or resize existing sites. The new values apply when a site is deployed or redeployed.
Recover From A Bad Value
Section titled “Recover From A Bad Value”If the server fails during startup after a limit change, inspect its logs for an invalid integer, restore the previous value, and restart it. Buzz doesn’t validate that configured integers are positive, so use positive values unless you intentionally want all non-empty deployments rejected.
See Troubleshoot Deployment for rejection messages.