Bench Configuration
Bench Configuration allows you to define common site configuration variables that automatically apply to every site deployed on the bench. This helps maintain consistent settings across multiple sites without configuring each site individually.
Note
Configuration values set at the bench level are applied to all sites hosted on that bench unless overridden by a site-specific configuration.
Update Bench Configuration
- Open your Private Bench dashboard.
- Navigate to the Configuration tab.
- Enter or update the required site configuration variables.
- Click Save or Update Configuration to apply the changes.
Any supported site configuration variable added here becomes the default configuration for every site deployed on the bench.
Configure HTTP Timeout
You can configure the HTTP Timeout value to control how long Gunicorn workers wait for a request to finish before returning a 504 Gateway Timeout error.
- Configuration Key:
httptimeout - Default Value:
120seconds
Increasing this value can be useful if your custom API endpoints require additional processing time before sending a response.
Best Practice
Only increase the HTTP timeout when necessary. If requests consistently take a long time to complete, consider optimizing the API or moving long-running tasks to background jobs instead of relying on higher timeout values.